package daemon: Volume: fix package removal after transaction
Volume::_ChangePackageActivation(): Refactoring oversight: fPackagesToBeDeactivated was still used instead of the packagesToDeactivate parameter, so the packages wouldn't be removed from the hash tables when invoked from the CommitTransactionHandler. Fixes #9921.
This commit is contained in:
@@ -1721,8 +1721,8 @@ packagesToActivate.size(), packagesToDeactivate.size());
|
||||
fChangeCount++;
|
||||
}
|
||||
|
||||
for (PackageSet::iterator it = fPackagesToBeDeactivated.begin();
|
||||
it != fPackagesToBeDeactivated.end(); ++it) {
|
||||
for (PackageSet::iterator it = packagesToDeactivate.begin();
|
||||
it != packagesToDeactivate.end(); ++it) {
|
||||
Package* package = *it;
|
||||
_RemovePackage(package);
|
||||
delete package;
|
||||
|
||||
Reference in New Issue
Block a user