diff options
Diffstat (limited to 'urpm')
-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; } }, |