aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/user_dep_spec.cc')
-rw-r--r--paludis/user_dep_spec.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/user_dep_spec.cc b/paludis/user_dep_spec.cc
index 37f1c12c3..7f8887384 100644
--- a/paludis/user_dep_spec.cc
+++ b/paludis/user_dep_spec.cc
@@ -326,7 +326,7 @@ paludis::user_version_spec_options()
std::tuple<KeyConstraintKeyType, std::string, KeyConstraintOperation, std::string>
paludis::parse_user_key_constraint(const std::string & s)
{
- std::string::size_type p(s.find_first_of("=<>?"));
+ std::string::size_type p(s.find_first_of("=<>?~"));
if (std::string::npos == p)
throw PackageDepSpecError("[." + s + "] contains no operator");
@@ -348,6 +348,7 @@ paludis::parse_user_key_constraint(const std::string & s)
switch (s.at(p))
{
case '=': op = kco_equals; break;
+ case '~': op = kco_tilde; break;
case '<': op = kco_less_than; break;
case '>': op = kco_greater_than; break;
default: