aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/repositories/e/e_repository.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 68380b58e..7fd726f79 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -1325,9 +1325,13 @@ ERepository::repository_factory_create(
std::string cache(f("cache"));
if (cache.empty())
{
- cache = location + "/metadata/cache";
+ cache = location + "/metadata/md5-cache";
if (! FSPath(cache).stat().exists())
- cache = "/var/empty";
+ {
+ cache = location + "/metadata/cache";
+ if (! FSPath(cache).stat().exists())
+ cache = "/var/empty";
+ }
}
std::string write_cache(f("write_cache"));