From c24083ed20645836e23db3955224fe1f796a604b Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 13 Oct 2005 14:31:36 +0000 Subject: Only quote "+" in patterns (for c++ / libgtk+ / etc... packages) --- urpm/args.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm/args.pm') 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; } }, -- cgit v1.2.1