aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-07 23:42:08 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-07 23:42:08 +0000
commitf4b2ca3893e23fd7a4beaa5c3f7bb363522f0876 (patch)
treef81c966b3c3b64414646bc9fd43af0409f63d23a
parentd6ead86413680b85f602053b7d6e87848c7e77f2 (diff)
downloadpaludis-f4b2ca3893e23fd7a4beaa5c3f7bb363522f0876.tar.gz
paludis-f4b2ca3893e23fd7a4beaa5c3f7bb363522f0876.tar.xz
Smarter behaviour for empty
-rw-r--r--paludis/portage_repository.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index f9ee9af..aa25aef 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -554,7 +554,7 @@ PortageRepository::do_version_metadata(
ok = true;
}
- else if (_implementation->cache.basename() != "empty")
+ else
Log::get_instance()->message(ll_warning, "Couldn't read the cache file at '"
+ stringify(cache_file) + "'");
}
@@ -572,8 +572,9 @@ PortageRepository::do_version_metadata(
if (! ok)
{
- Log::get_instance()->message(ll_warning, "No cache entry for '" + stringify(c) + "/" +
- stringify(p) + "-" + stringify(v) + "' in '" + stringify(name()) + "'");
+ if (_implementation->cache.basename() != "empty")
+ Log::get_instance()->message(ll_warning, "No cache entry for '" + stringify(c) + "/" +
+ stringify(p) + "-" + stringify(v) + "' in '" + stringify(name()) + "'");
std::string cmd(
"env P='" + stringify(p) + "-" + stringify(v.remove_revision()) + "' " +