/** \name Solver flags */
//@{
- bool _forceResolve; // remove items which are conflicts with others or
- // have unfulfilled requirements.
- // This behaviour is favourited by ZMD
bool _upgradeMode; // Resolver has been called with doUpgrade
bool _updateMode; // Resolver has been called with doUpdate
bool _verifying; // The system will be checked
bool _onlyRequires; // do install required resolvables only
// no recommended resolvables, language
// packages, hardware packages (modalias)
- bool _allowVendorChange; // whether the solver should allow or disallow vendor changes.
bool _solveSrcPackages; // whether to generate solver jobs for selected source packges.
bool _cleandepsOnRemove; // whether removing a package should also remove no longer needed requirements
bool onlyRequires () const { return _onlyRequires; }
void setOnlyRequires( TriBool state_r );
- bool forceResolve() const { return _forceResolve; }
- void setForceResolve( TriBool state_r ) { _forceResolve = indeterminate(state_r) ? false : bool(state_r); }
-
bool isUpgradeMode() const { return _upgradeMode; }// Resolver has been called with doUpgrade
void setUpgradeMode( bool yesno_r ) { _upgradeMode = yesno_r; }
bool isVerifyingMode() const { return _verifying; } // The system will be checked
void setVerifyingMode( TriBool state_r ) { _verifying = indeterminate(state_r) ? false : bool(state_r); }
- bool allowVendorChange() const { return _allowVendorChange; }
- void setAllowVendorChange( TriBool state_r );
-
bool solveSrcPackages() const { return _solveSrcPackages; }
void setSolveSrcPackages( TriBool state_r ) { _solveSrcPackages = indeterminate(state_r) ? false : bool(state_r); }
void ZSETTER( TriBool state_r ); \
bool ZGETTER() const; \
+ ZOLV_FLAG_TRIBOOL( setForceResolve, forceResolve )
+
+ ZOLV_FLAG_TRIBOOL( setAllowDowngrade, allowDowngrade )
+ ZOLV_FLAG_TRIBOOL( setAllowNameChange, allowNameChange )
+ ZOLV_FLAG_TRIBOOL( setAllowArchChange, allowArchChange )
+ ZOLV_FLAG_TRIBOOL( setAllowVendorChange, allowVendorChange )
+
ZOLV_FLAG_TRIBOOL( dupSetAllowDowngrade, dupAllowDowngrade )
ZOLV_FLAG_TRIBOOL( dupSetAllowNameChange, dupAllowNameChange )
ZOLV_FLAG_TRIBOOL( dupSetAllowArchChange, dupAllowArchChange )