pkgman: Use BPackageInfo::FileName() instead of Canonical*()

This commit is contained in:
Ingo Weinhold
2013-08-29 23:19:14 +02:00
parent dda51ada4c
commit a0cb235c0e
+3 -4
View File
@@ -550,7 +550,7 @@ PackageManager::_PrintResult(InstalledRepository& installationRepository)
for (int32 i = 0; BSolverPackage* package = packagesToActivate.ItemAt(i);
i++) {
printf(" install package %s from repository %s\n",
package->Info().CanonicalFileName().String(),
package->Info().FileName().String(),
package->Repository()->Name().String());
}
@@ -606,7 +606,7 @@ PackageManager::_ApplyPackageChanges(
i++) {
// get package URL and target entry
BString fileName(package->Info().CanonicalFileName());
BString fileName(package->Info().FileName());
if (fileName.IsEmpty())
DIE(B_NO_MEMORY, "failed to allocate file name");
@@ -644,8 +644,7 @@ PackageManager::_ApplyPackageChanges(
for (int32 i = 0; BSolverPackage* package = packagesToDeactivate.ItemAt(i);
i++) {
// add package to transaction
if (!transaction.AddPackageToDeactivate(
package->Info().CanonicalFileName())) {
if (!transaction.AddPackageToDeactivate(package->Info().FileName())) {
DIE(B_NO_MEMORY,
"failed to add package to deactivate to transaction");
}