, _testing(false)
, _forceResolve(false)
, _upgradeMode(false)
+ , _updateMode(false)
, _verifying(false)
, _onlyRequires(indeterminate)
, _ignorealreadyrecommended(false)
void
Resolver::doUpdate()
{
+ _updateMode = true;
return _satResolver->doUpdate();
}
// 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
TriBool _onlyRequires; // do install required resolvables only
// no recommended resolvables, language
bool doUpgrade( zypp::UpgradeStatistics & opt_stats_r );
PoolItemList problematicUpdateItems( void ) const;
+ bool isUpgradeMode(){ return _upgradeMode;}; // Resolver has been called with doUpgrade
+ bool isUpdateMode(){ return _updateMode;}; // Resolver has been called with doUpdate
+ bool isVerifyingMode(){ return _verifying;}; // The system will be checked
+
ResolverProblemList problems () const;
void applySolutions (const ProblemSolutionList &solutions);
control.addDependencies (SystemCheck::instance().requiredSystemCap(),
SystemCheck::instance().conflictSystemCap());
+ if (resolver.isUpgradeMode())
+ control.distupgrade ();
+ if (resolver.isUpdateMode())
+ control.verifySystem ();
+ if (resolver.isVerifyingMode())
+ control.update();
+
return true;
}
*file << TAB << "<ignorealreadyrecommended/>" << endl;
*file << "</setup>" << endl
- << "<trial>" << endl
- << "<showpool all=\"yes\"/>" << endl;
+ << "<trial>" << endl;
}
HelixControl::HelixControl()
}
}
+void HelixControl::distupgrade()
+{
+ *file << "<distupgrade/>" << endl;
+}
+
+void HelixControl::verifySystem()
+{
+ *file << "<verify/>" << endl;
+}
+
+void HelixControl::update()
+{
+ *file << "<update/>" << endl;
+}
+
///////////////////////////////////////////////////////////////////
};// namespace detail
void deleteResolvable (const ResObject::constPtr &resObject,
const ResStatus &status);
void addDependencies (const CapabilitySet &capRequire, const CapabilitySet &capConflict);
+
+ void distupgrade ();
+ void verifySystem ();
+ void update ();
+
std::string filename () { return dumpFile; }
};