aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-04-27 23:10:36 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-04-28 01:38:21 +0100
commit4bfc5e2f99c6d7d5b179f14a26694cc62717ed74 (patch)
treefa122ae2fe7ee79d17c7009d5defae3d07f40015
parent6ff30f0138ff668539c8fb2407f51a75c0293174 (diff)
downloadpaludis-4bfc5e2f99c6d7d5b179f14a26694cc62717ed74.tar.gz
paludis-4bfc5e2f99c6d7d5b179f14a26694cc62717ed74.tar.xz
Fix
-rw-r--r--paludis/repositories/e/e_repository.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 6f42b9e..021dafc 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -808,12 +808,15 @@ ERepository::purge_invalid_cache() const
Context context("When purging invalid write_cache:");
FSEntry write_cache(_imp->params.write_cache());
- if (write_cache == FSEntry("/var/empty") || ! write_cache.is_directory_or_symlink_to_directory())
+ if (write_cache == FSEntry("/var/empty"))
return;
if (_imp->params.append_repository_name_to_write_cache())
write_cache /= stringify(name());
+ if (! write_cache.is_directory_or_symlink_to_directory())
+ return;
+
const std::tr1::shared_ptr<const EAPI> eapi(EAPIData::get_instance()->eapi_from_string(
_imp->params.eapi_when_unknown()));