aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-24 20:24:04 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-24 20:24:04 +0000
commit9c27e6efa6b102927b8ddb70dc1c0dcfd7c1e93f (patch)
tree09b13d8d53efb6d8adbbf99b9ae1701d56a44d1f
parentedbebba950d4fc75cd84e2f69648b10f207fb847 (diff)
downloadpaludis-9c27e6efa6b102927b8ddb70dc1c0dcfd7c1e93f.tar.gz
paludis-9c27e6efa6b102927b8ddb70dc1c0dcfd7c1e93f.tar.xz
Let * accept empty keywords. Fixes: ticket:48.
-rw-r--r--paludis/environment.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/environment.cc b/paludis/environment.cc
index 1bd9cb4..bc7f5e5 100644
--- a/paludis/environment.cc
+++ b/paludis/environment.cc
@@ -150,6 +150,8 @@ Environment::mask_reasons(const PackageDatabaseEntry & e, const bool override_ti
WhitespaceTokeniser::get_instance()->tokenise(
metadata->get_ebuild_interface()->keywords,
create_inserter<KeywordName>(std::inserter(keywords, keywords.end())));
+ if (keywords.empty())
+ keywords.insert(KeywordName("empty"));
result.set(mr_keyword);
for (std::set<KeywordName>::const_iterator i(keywords.begin()),