aboutsummaryrefslogtreecommitdiff
path: root/paludis/elike_package_dep_spec.cc
diff options
context:
space:
mode:
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);
}