aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-14 09:22:50 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-14 09:57:40 +0100
commitcabf80cc5dfeb84eef7c4d7784eee0dc87de6d5e (patch)
tree05a370d70ee2c8aee9d6bdf44a0a4f1a94dff5cc /paludis/user_dep_spec.cc
parent81d87f2466fcccf199a0a7363062eab649acb87a (diff)
downloadpaludis-cabf80cc5dfeb84eef7c4d7784eee0dc87de6d5e.tar.gz
paludis-cabf80cc5dfeb84eef7c4d7784eee0dc87de6d5e.tar.xz
Maintainers as objects
Diffstat (limited to 'paludis/user_dep_spec.cc')
-rw-r--r--paludis/user_dep_spec.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/paludis/user_dep_spec.cc b/paludis/user_dep_spec.cc
index 6d8400514..4e810d0d6 100644
--- a/paludis/user_dep_spec.cc
+++ b/paludis/user_dep_spec.cc
@@ -820,6 +820,20 @@ namespace
return false;
}
+
+ bool visit(const MetadataCollectionKey<Maintainers> & s) const
+ {
+ auto v(s.parse_value());
+ switch (op)
+ {
+ case '=':
+ return pattern == join(v->begin(), v->end(), " ");
+ case '<':
+ return v->end() != std::find_if(v->begin(), v->end(), StringifyEqual(pattern));
+ }
+
+ return false;
+ }
};
struct AssociatedKeyFinder