aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-17 00:31:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-17 00:31:12 +0000
commit584f9d58222cac6d5092d2262e2e5229ffca8890 (patch)
tree957502559cbb84763de9f9ae8534e9095b3215dd
parenta8b4e7c3f2f252e7e3ab66adb8a62a0297e76d44 (diff)
downloadpaludis-584f9d58222cac6d5092d2262e2e5229ffca8890.tar.gz
paludis-584f9d58222cac6d5092d2262e2e5229ffca8890.tar.xz
Check for eclass descriptions
-rw-r--r--paludis/qa/description_check.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/qa/description_check.cc b/paludis/qa/description_check.cc
index e9f2ad7..50c4c4d 100644
--- a/paludis/qa/description_check.cc
+++ b/paludis/qa/description_check.cc
@@ -46,6 +46,9 @@ DescriptionCheck::operator() (const EbuildCheckData & e) const
else if (0 == strcasecmp(e.get<ecd_name>().get<qpn_package>().data().c_str(),
metadata->get(vmk_description).c_str()))
result << Message(qal_major, "DESCRIPTION equal to $PN? You can do better than that.");
+ else if (std::string::npos != metadata->get(vmk_description).find("Based on the") &&
+ std::string::npos != metadata->get(vmk_description).find("eclass"))
+ result << Message(qal_major, "DESCRIPTION is about as useful as a chocolate teapot");
else if (length < 10)
result << Message(qal_minor, "DESCRIPTION suspiciously short (" + stringify(length) + ")");
else if (length > 300)