summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/args.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index a9c12513..e84b9a37 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -148,6 +148,7 @@ my %options_spec = (
epoch => \$::params{epoch},
files => \$::params{files},
group => \$::params{group},
+ literal => \$::literal,
name => \$::params{filename},
obsoletes => \$::params{obsoletes},
packager => \$::params{packager},
@@ -178,8 +179,12 @@ my %options_spec = (
}
else {
# This is for non-option arguments.
- # quote "+" chars for packages with + in their names
- $p =~ s/\+/\\+/g;
+ if ($literal) {
+ $p = quotemeta $p;
+ } else {
+ # quote "+" chars for packages with + in their names
+ $p =~ s/\+/\\+/g;
+ }
$::expr .= "m{$p}" . $::pattern;
}
},