package daemon: Fix Volume::_WriteActivationFile()

* Wasn't using the toActivate and toDeactivate parameters, but the
  attributes. Thus failed when called from the
  CommitTransactionHandler.
* Volume::_ChangePackageActivation(): Fix debug output.
This commit is contained in:
Ingo Weinhold 2013-04-20 21:18:41 +02:00
parent e14b247176
commit cca3f3b743

View File

@ -1580,8 +1580,8 @@ Volume::_WriteActivationFile(const RelativePath& directoryPath,
{ {
// create the content // create the content
BString activationFileContent; BString activationFileContent;
status_t error = _CreateActivationFileContent(fPackagesToBeActivated, status_t error = _CreateActivationFileContent(toActivate, toDeactivate,
fPackagesToBeDeactivated, activationFileContent); activationFileContent);
if (error != B_OK) if (error != B_OK)
return error; return error;
@ -1629,7 +1629,7 @@ void
Volume::_ChangePackageActivation(const PackageSet& packagesToActivate, Volume::_ChangePackageActivation(const PackageSet& packagesToActivate,
const PackageSet& packagesToDeactivate) const PackageSet& packagesToDeactivate)
{ {
INFORM("Volume::ProcessPendingPackageActivationChanges(): activating %zu, deactivating %zu packages\n", INFORM("Volume::_ChangePackageActivation(): activating %zu, deactivating %zu packages\n",
packagesToActivate.size(), packagesToDeactivate.size()); packagesToActivate.size(), packagesToDeactivate.size());
// write the temporary package activation file // write the temporary package activation file