aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2007-02-08 10:55:12 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2007-02-08 10:55:12 +0000
commitc75893393b5afe6f463327d162ef0809f3851816 (patch)
treeb1182872100dc459a7d87b6209ee21b8abc266db
parent86949f83af7cec8011009563c782e009072eb213 (diff)
downloadpaludis-c75893393b5afe6f463327d162ef0809f3851816.tar.gz
paludis-c75893393b5afe6f463327d162ef0809f3851816.tar.xz
Add check for use flag descriptions.
-rw-r--r--paludis/qa/iuse_check.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/qa/iuse_check.cc b/paludis/qa/iuse_check.cc
index 97b244a..032d31e 100644
--- a/paludis/qa/iuse_check.cc
+++ b/paludis/qa/iuse_check.cc
@@ -87,6 +87,11 @@ IuseCheck::operator() (const EbuildCheckData & e) const
if (! bad_iuse.empty())
result << Message(qal_minor, "Deprecated IUSEs '" + join(bad_iuse.begin(),
bad_iuse.end(), "', '") + "'");
+
+ for (std::set<UseFlagName>::iterator i(iuse.begin()), i_end(iuse.end()) ; i != i_end ; ++i)
+ if ("" == e.environment->package_database()->fetch_repository(ee.repository)->use_interface->
+ describe_use_flag(*i, &ee))
+ result << Message(qal_minor, "Use flag '" + stringify(*i) + "' has no description");
}
catch (const NameError & err)
{