summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-13 14:38:31 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-13 14:38:31 +0000
commitacdc7d784b7c855c63409dfa755dd698a9e52ed7 (patch)
tree57fc303459fbdf6996a2fb0d200cb0e965b747c2 /urpm
parentc24083ed20645836e23db3955224fe1f796a604b (diff)
downloadurpmi-acdc7d784b7c855c63409dfa755dd698a9e52ed7.tar
urpmi-acdc7d784b7c855c63409dfa755dd698a9e52ed7.tar.gz
urpmi-acdc7d784b7c855c63409dfa755dd698a9e52ed7.tar.bz2
urpmi-acdc7d784b7c855c63409dfa755dd698a9e52ed7.tar.xz
urpmi-acdc7d784b7c855c63409dfa755dd698a9e52ed7.zip
Add a --literal option to urpmf
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;
}
},