diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-13 14:38:31 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-10-13 14:38:31 +0000 |
commit | acdc7d784b7c855c63409dfa755dd698a9e52ed7 (patch) | |
tree | 57fc303459fbdf6996a2fb0d200cb0e965b747c2 /urpm | |
parent | c24083ed20645836e23db3955224fe1f796a604b (diff) | |
download | urpmi-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.pm | 9 |
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; } }, |