aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-10 17:19:54 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-10 17:19:54 +0100
commit09fc6b178c0ba3d28c118ef34bf6c3ac301cf781 (patch)
treeb45d3d4134801970bc6ae189f556654fcfddf45e
parentaa47e5f789d6467037e341e9667547fcc50064ec (diff)
downloadpaludis-09fc6b178c0ba3d28c118ef34bf6c3ac301cf781.tar.gz
paludis-09fc6b178c0ba3d28c118ef34bf6c3ac301cf781.tar.xz
Handle invalid metadata in cache differently
-rw-r--r--paludis/repositories/e/ebuild_flat_metadata_cache.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/paludis/repositories/e/ebuild_flat_metadata_cache.cc b/paludis/repositories/e/ebuild_flat_metadata_cache.cc
index b3bfa68..9030fc6 100644
--- a/paludis/repositories/e/ebuild_flat_metadata_cache.cc
+++ b/paludis/repositories/e/ebuild_flat_metadata_cache.cc
@@ -654,7 +654,10 @@ EbuildFlatMetadataCache::load(const std::shared_ptr<const EbuildID> & id, const
{
Log::get_instance()->message("e.cache.failure", ll_warning, lc_no_context) << "Not using cache file at '"
<< _imp->filename << "' due to exception '" << e.message() << "' (" << e.what() << ")";
- return false;
+
+ id->set_eapi(EAPIData::get_instance()->unknown_eapi()->name());
+
+ return true;
}
}