From 84f50b1ce9b34ac94d29d6d144d38be5b3f16fb4 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 13 Jul 2011 01:50:00 +0200 Subject: [PATCH] GetRepositoryCache/Config(): return valid entry Always create the common repository cache/config paths so the BEntry that is returned is valid at least. Fixes BRefreshRepositoryRequest failing when the common repository cache path didn't exist yet. --- src/kits/package/PackageRoster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/package/PackageRoster.cpp b/src/kits/package/PackageRoster.cpp index 66674faad6..ce6edc9fc9 100644 --- a/src/kits/package/PackageRoster.cpp +++ b/src/kits/package/PackageRoster.cpp @@ -139,7 +139,7 @@ BPackageRoster::GetRepositoryCache(const BString& name, if (repoCacheEntry.Exists()) return repositoryCache->SetTo(repoCacheEntry); - if ((result = GetCommonRepositoryCachePath(&path)) != B_OK) + if ((result = GetCommonRepositoryCachePath(&path, true)) != B_OK) return result; path.Append(name.String()); @@ -166,7 +166,7 @@ BPackageRoster::GetRepositoryConfig(const BString& name, if (repoConfigEntry.Exists()) return repositoryConfig->SetTo(repoConfigEntry); - if ((result = GetCommonRepositoryConfigPath(&path)) != B_OK) + if ((result = GetCommonRepositoryConfigPath(&path, true)) != B_OK) return result; path.Append(name.String());