BPackageManager: Add InstalledRepository::EnablePackage()

This commit is contained in:
Ingo Weinhold 2013-09-10 18:58:07 +02:00
parent 018173a2f5
commit 36204024cf
2 changed files with 10 additions and 0 deletions

View File

@ -167,6 +167,9 @@ public:
{ return fInitialPriority; }
void DisablePackage(BSolverPackage* package);
// throws, if already disabled
bool EnablePackage(BSolverPackage* package);
// returns whether it was disabled
PackageList& PackagesToActivate()
{ return fPackagesToActivate; }

View File

@ -752,6 +752,13 @@ BPackageManager::InstalledRepository::DisablePackage(BSolverPackage* package)
}
bool
BPackageManager::InstalledRepository::EnablePackage(BSolverPackage* package)
{
return fDisabledPackages.RemoveItem(package);
}
bool
BPackageManager::InstalledRepository::HasChanges() const
{