summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-13 13:40:28 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-13 13:40:28 +0000
commit8082ff305e7973b52c816cea5d61923deccc1fa6 (patch)
treeed877f692c0a5d40b9e52edca20f02759cfb55c6
parenta89707cf5ab7313c7495bc044ded20bee5d4514c (diff)
downloadurpmi-8082ff305e7973b52c816cea5d61923deccc1fa6.tar
urpmi-8082ff305e7973b52c816cea5d61923deccc1fa6.tar.gz
urpmi-8082ff305e7973b52c816cea5d61923deccc1fa6.tar.bz2
urpmi-8082ff305e7973b52c816cea5d61923deccc1fa6.tar.xz
urpmi-8082ff305e7973b52c816cea5d61923deccc1fa6.zip
Allow ! ( ) as well as -! -( -) as arguments to urpmf (backwards compat)
-rw-r--r--urpm/args.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 460adfbb..1e0978f3 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -167,7 +167,7 @@ my %options_spec = (
o => sub { $::expr .= ' || ' },
'<>' => sub {
my $p = shift;
- if ($p =~ /^-([!()])$/) {
+ if ($p =~ /^-?([!()])$/) {
# This is for -! -( -)
$::expr .= $1;
}