public:
ZYppCommitResult();
+ ZYppCommitResult( const ZYppCommitResult & lhs_r );
ZYppCommitResult( const Pathname & root_r );
+ ~ZYppCommitResult();
public:
/** Remembered root directory of the target.
*/
const Pathname & root() const;
+ /** \c True if at least one attempt to actually install/remove packages was made.
+ * While this is false there should have been no serious modifications to the system.
+ * Mainly used to detect whether commit failed while preloading the caches or within
+ * the real action.
+ */
+ bool attemptToModify() const;
+
+ /** Set \ref attemptToModify */
+ void attemptToModify( bool yesno_r );
+
/** The full transaction list.
* The complete list including transaction steps that do not require
* any action (like obsoletes or non-package actions). Depending on
//@}
public:
- /** \name Oldstlye interface to be removed asap.
- * \deprecated PoolItem is not suitable for reporting errors about
- * packages to be deteled, as reloading the rpm database after commit
- * invalidates them.
- */
- //@{
- typedef std::list<PoolItem> PoolItemList;
- /**
- * number of committed resolvables
- **/
- int _result ZYPP_DEPRECATED;
- /**
- * list of resolvables with error
- **/
- PoolItemList _errors ZYPP_DEPRECATED;
- /**
- * list of resolvables remaining (due to wrong media)
- **/
- PoolItemList _remaining ZYPP_DEPRECATED;
- /**
- * list of kind:source resolvables remaining (due to wrong media)
- **/
- PoolItemList _srcremaining ZYPP_DEPRECATED;
- //@}
-
- public:
/** Implementation */
class Impl;
private: