aboutsummaryrefslogtreecommitdiff
path: root/paludis/elike_package_dep_spec.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2009-03-22 19:27:36 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2009-03-22 20:16:43 +0000
commit0e86b74b62a0a3ab97311a21d1c05a73424248b7 (patch)
tree1ac4d71ec6486ea11de05cebe866231e52a89196 /paludis/elike_package_dep_spec.cc
parent4d3c6ba27de87d60b57a068db87c7e4fe39b32df (diff)
downloadpaludis-0e86b74b62a0a3ab97311a21d1c05a73424248b7.tar.gz
paludis-0e86b74b62a0a3ab97311a21d1c05a73424248b7.tar.xz
Support nice =* and use it for user and exheres
Diffstat (limited to 'paludis/elike_package_dep_spec.cc')
-rw-r--r--paludis/elike_package_dep_spec.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/elike_package_dep_spec.cc b/paludis/elike_package_dep_spec.cc
index 1065d38..8a45548 100644
--- a/paludis/elike_package_dep_spec.cc
+++ b/paludis/elike_package_dep_spec.cc
@@ -169,7 +169,7 @@ paludis::elike_remove_trailing_square_bracket_if_exists(std::string & s, Partial
{
ver.erase(ver.length() - 1);
if (vop == vo_equal)
- vop = vo_equal_star;
+ vop = options[epdso_nice_equal_star] ? vo_nice_equal_star : vo_stupid_equal_star;
else
throw PackageDepSpecError("Invalid use of * with operator '" + stringify(vop) + " inside []");
}
@@ -339,7 +339,7 @@ paludis::elike_get_remove_version_operator(std::string & s, const ELikePackageDe
{
if (op != vo_equal)
throw PackageDepSpecError("Package dep spec uses * with operator '" + stringify(op) + "'");
- op = vo_equal_star;
+ op = options[epdso_nice_equal_star] ? vo_nice_equal_star : vo_stupid_equal_star;
s.erase(s.length() - 1);
}