aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-10-17 17:55:07 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-10-17 17:55:07 +0000
commit1c4f23900c16ed6ac5255e8f975e37c198ebf4a6 (patch)
tree4099f0660af169f449c5b4d2d6a0e0e73c7b0bd0
parent332241305f6311ce17e1a1d3cc65133f65ca3a3b (diff)
downloadpaludis-1c4f23900c16ed6ac5255e8f975e37c198ebf4a6.tar.gz
paludis-1c4f23900c16ed6ac5255e8f975e37c198ebf4a6.tar.xz
Don't die when the metadata cache specifies an unsupported EAPI.
-rw-r--r--paludis/repositories/e/ebuild_flat_metadata_cache.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild_flat_metadata_cache.cc b/paludis/repositories/e/ebuild_flat_metadata_cache.cc
index 9baae91..5e0f793 100644
--- a/paludis/repositories/e/ebuild_flat_metadata_cache.cc
+++ b/paludis/repositories/e/ebuild_flat_metadata_cache.cc
@@ -117,6 +117,8 @@ EbuildFlatMetadataCache::load(const tr1::shared_ptr<const EbuildID> & id)
id->load_provide(m.metadata_provide, m.description_provide, lines[13]);
}
}
+ else
+ id->set_slot(SlotName("UNKNOWN"));
if (! ok)
Log::get_instance()->message(ll_warning, lc_no_context) << "Stale cache file at '"