1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
/**
\page zypp-userdata User data as transaction id
\author Michael Andres <ma@suse.de>
<HR><!-- ====================================================================== -->
\section userdata-introduction Introduction
It is possible to store a user defined data string via \ref zypp::ZConfig::setUserData inside libzypp for use as a transaction id. \c Zypper e.g. supports this via its global <tt>'--userdata <string>'</tt> option.
\li Setting a new user data string, a line will be written to the log file. So you can \c grep for it, or for <tt>'(setUserData)'</tt> to find all locations where user data strings were set.
\li The user data string will also be passed to commit plugins, so they can make use of it. The btrfs e.g would be able to tag created snapshots with this string. \see \ref plugin-commit
\li The user data string will appear on each histoy line logging package or repository related events (install, delete, add, modify). \see \ref zypp::HistoryLog and zypp::parser::HistoryLogReader
*/
|