aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-15 00:36:49 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-15 00:36:49 +0000
commit96252cfd7e9489d4c161053b255062b1ead05ee3 (patch)
tree475917227d7ce260e722d8f8d40cf061327b69ed
parent699dc0d9725f4efab56fe40f06720919dbddaf75 (diff)
downloadpaludis-96252cfd7e9489d4c161053b255062b1ead05ee3.tar.gz
paludis-96252cfd7e9489d4c161053b255062b1ead05ee3.tar.xz
Catch metadata creation failure as a fatal
-rw-r--r--paludis/qa/create_metadata_check.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/qa/create_metadata_check.cc b/paludis/qa/create_metadata_check.cc
index feb0db0..1a9eb12 100644
--- a/paludis/qa/create_metadata_check.cc
+++ b/paludis/qa/create_metadata_check.cc
@@ -38,6 +38,9 @@ CreateMetadataCheck::operator() (const EbuildCheckData & e) const
e.get<ecd_environment>()->package_database()->favourite_repository());
VersionMetadata::ConstPointer metadata(
e.get<ecd_environment>()->package_database()->fetch_metadata(ee));
+
+ if ("UNKNOWN" == metadata->get(vmk_eapi))
+ result << Message(qal_fatal, "Couldn't generate metadata");
}
catch (const InternalError &)
{