summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-13 14:31:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-13 14:31:36 +0000
commitc24083ed20645836e23db3955224fe1f796a604b (patch)
tree42a5bf79441c214e7de10f46d544e841406e4535
parentbcdf10636a46f17a897d7c3ca8f9d042dd865672 (diff)
downloadurpmi-c24083ed20645836e23db3955224fe1f796a604b.tar
urpmi-c24083ed20645836e23db3955224fe1f796a604b.tar.gz
urpmi-c24083ed20645836e23db3955224fe1f796a604b.tar.bz2
urpmi-c24083ed20645836e23db3955224fe1f796a604b.tar.xz
urpmi-c24083ed20645836e23db3955224fe1f796a604b.zip
Only quote "+" in patterns (for c++ / libgtk+ / etc... packages)
-rw-r--r--urpm/args.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 8e2e68cb..a9c12513 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -178,8 +178,8 @@ my %options_spec = (
}
else {
# This is for non-option arguments.
- # Assume a regex unless a ++ is inside the string.
- $p = quotemeta $p if $p =~ /\+\+/;
+ # quote "+" chars for packages with + in their names
+ $p =~ s/\+/\\+/g;
$::expr .= "m{$p}" . $::pattern;
}
},