diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-13 14:31:36 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-13 14:31:36 +0000 |
commit | c24083ed20645836e23db3955224fe1f796a604b (patch) | |
tree | 42a5bf79441c214e7de10f46d544e841406e4535 | |
parent | bcdf10636a46f17a897d7c3ca8f9d042dd865672 (diff) | |
download | urpmi-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.pm | 4 |
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; } }, |