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++;
|
fChangeCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (PackageSet::iterator it = fPackagesToBeDeactivated.begin();
|
for (PackageSet::iterator it = packagesToDeactivate.begin();
|
||||||
it != fPackagesToBeDeactivated.end(); ++it) {
|
it != packagesToDeactivate.end(); ++it) {
|
||||||
Package* package = *it;
|
Package* package = *it;
|
||||||
_RemovePackage(package);
|
_RemovePackage(package);
|
||||||
delete package;
|
delete package;
|
||||||
|
|||||||
Reference in New Issue
Block a user