diff options
author | 2012-03-30 00:33:42 +0100 | |
---|---|---|
committer | 2012-03-30 18:31:00 +0100 | |
commit | 9bf46f1a321dd62b8a81aaf811a85422b39e564c (patch) | |
tree | db642cd6e9a2f3959ea86c299784edf06eeeb237 | |
parent | 27f5b80072a637108d984754616f4a757170cf40 (diff) | |
download | paludis-9bf46f1a321dd62b8a81aaf811a85422b39e564c.tar.gz paludis-9bf46f1a321dd62b8a81aaf811a85422b39e564c.tar.xz |
Use metadata/md5-cache if it exists
-rw-r--r-- | paludis/repositories/e/e_repository.cc | 8 |
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")); |