aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2012-03-30 00:33:42 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2012-03-30 18:31:00 +0100
commit9bf46f1a321dd62b8a81aaf811a85422b39e564c (patch)
treedb642cd6e9a2f3959ea86c299784edf06eeeb237
parent27f5b80072a637108d984754616f4a757170cf40 (diff)
downloadpaludis-9bf46f1a321dd62b8a81aaf811a85422b39e564c.tar.gz
paludis-9bf46f1a321dd62b8a81aaf811a85422b39e564c.tar.xz
Use metadata/md5-cache if it exists
-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 68380b5..7fd726f 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"));