aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-05-06 20:51:28 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-05-12 11:33:35 +0100
commit57229d3c88a580548406b10198088698421f7967 (patch)
treeef3986438029cddae3f2f19ab1e5000048851ffd /src
parent984050842f2dd81d34cd2de19cf58709a5e90b15 (diff)
downloadpaludis-57229d3c88a580548406b10198088698421f7967.tar.gz
paludis-57229d3c88a580548406b10198088698421f7967.tar.xz
Add AtMostOneDepSpec
Diffstat (limited to 'src')
-rw-r--r--src/clients/cave/cmd_match.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_match.cc b/src/clients/cave/cmd_match.cc
index 129f6d4ee..f422ae639 100644
--- a/src/clients/cave/cmd_match.cc
+++ b/src/clients/cave/cmd_match.cc
@@ -190,6 +190,11 @@ namespace
std::for_each(indirect_iterator(node.begin()), indirect_iterator(node.end()), accept_visitor(*this));
}
+ void visit(const GenericSpecTree::NodeType<AtMostOneDepSpec>::Type & node)
+ {
+ std::for_each(indirect_iterator(node.begin()), indirect_iterator(node.end()), accept_visitor(*this));
+ }
+
void visit(const GenericSpecTree::NodeType<SimpleURIDepSpec>::Type & node)
{
texts.push_back(stringify(*node.spec()));