aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_print_spec.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-01 20:57:52 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 08:32:59 +0100
commitf243a4014b98275a3ebb7872faadab5ba1fcafa8 (patch)
tree83724be5fe7feb82875e82a8cf4707d1e85cc929 /src/clients/cave/cmd_print_spec.cc
parentf0df32fb13ae4f2d9e78fa914a374da252a3ee52 (diff)
downloadpaludis-f243a4014b98275a3ebb7872faadab5ba1fcafa8.tar.gz
paludis-f243a4014b98275a3ebb7872faadab5ba1fcafa8.tar.xz
key requirements to constraints
Diffstat (limited to 'src/clients/cave/cmd_print_spec.cc')
-rw-r--r--src/clients/cave/cmd_print_spec.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_print_spec.cc b/src/clients/cave/cmd_print_spec.cc
index a693bcf..a967aec 100644
--- a/src/clients/cave/cmd_print_spec.cc
+++ b/src/clients/cave/cmd_print_spec.cc
@@ -258,7 +258,10 @@ namespace
a_end(cmdline.a_additional_requirement.end_args()) ;
a != a_end ; ++a)
if (! a->empty())
- s.additional_requirement(std::make_shared<UserKeyRequirement>(*a));
+ {
+ auto k(parse_user_key_constraint(*a));
+ s.key_constraint(std::get<0>(k), std::get<1>(k), std::get<2>(k));
+ }
}
cout << PackageDepSpec(s) << endl;