BPackageManager: Add InstalledRepository::EnablePackage()
This commit is contained in:
parent
018173a2f5
commit
36204024cf
@ -167,6 +167,9 @@ public:
|
|||||||
{ return fInitialPriority; }
|
{ return fInitialPriority; }
|
||||||
|
|
||||||
void DisablePackage(BSolverPackage* package);
|
void DisablePackage(BSolverPackage* package);
|
||||||
|
// throws, if already disabled
|
||||||
|
bool EnablePackage(BSolverPackage* package);
|
||||||
|
// returns whether it was disabled
|
||||||
|
|
||||||
PackageList& PackagesToActivate()
|
PackageList& PackagesToActivate()
|
||||||
{ return fPackagesToActivate; }
|
{ return fPackagesToActivate; }
|
||||||
|
@ -752,6 +752,13 @@ BPackageManager::InstalledRepository::DisablePackage(BSolverPackage* package)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
BPackageManager::InstalledRepository::EnablePackage(BSolverPackage* package)
|
||||||
|
{
|
||||||
|
return fDisabledPackages.RemoveItem(package);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BPackageManager::InstalledRepository::HasChanges() const
|
BPackageManager::InstalledRepository::HasChanges() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user