BSolver::VerifyInstallation(): Add flags parameter

Only flag ATM is B_VERIFY_ALLOW_UNINSTALL. It tells to solver to suggest
uninstalling packages when necessary instead of considering such a case
a problem.
This commit is contained in:
Ingo Weinhold
2013-08-28 12:55:47 +02:00
parent 75d15eb4c2
commit 89cb001511
3 changed files with 10 additions and 3 deletions
+6 -1
View File
@@ -34,6 +34,11 @@ public:
B_FIND_INSTALLED_ONLY = 0x20,
};
// VerifyInstallation() flags
enum {
B_VERIFY_ALLOW_UNINSTALL = 0x01,
};
public:
virtual ~BSolver();
@@ -67,7 +72,7 @@ public:
bool installNotYetInstalled,
const BSolverPackageSpecifier** _unmatched
= NULL) = 0;
virtual status_t VerifyInstallation() = 0;
virtual status_t VerifyInstallation(uint32 flags = 0) = 0;
bool HasProblems() const
{ return CountProblems() > 0; }