diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-01-18 14:38:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-01-18 14:38:08 +0000 |
commit | 23b35b838587cf83ff70afb0564576837d621a9a (patch) | |
tree | 2dd3e2c15f1a5376dad63b753ea9716daf39c439 /urpm/args.pm | |
parent | 0e244b48293b1ce13ac45b38a7c4632194eb431c (diff) | |
download | urpmi-23b35b838587cf83ff70afb0564576837d621a9a.tar urpmi-23b35b838587cf83ff70afb0564576837d621a9a.tar.gz urpmi-23b35b838587cf83ff70afb0564576837d621a9a.tar.bz2 urpmi-23b35b838587cf83ff70afb0564576837d621a9a.tar.xz urpmi-23b35b838587cf83ff70afb0564576837d621a9a.zip |
- urpmf:
o display a warning when searching "xxx(yyy)" since it is handled as a
regexp and so the parentheses are useless. suggest using --literal
Diffstat (limited to 'urpm/args.pm')
-rw-r--r-- | urpm/args.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index de7c6a58..b676a891 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -347,6 +347,7 @@ sub add_urpmf_parameter { if ($::literal) { $p = quotemeta $p; } else { + $p =~ /\([^?|]*\)$/ and $urpm->{error}(N("by default urpmf awaits a regexp. you should use option \"--literal\"")); push @::raw_non_literals, $p; # quote "+" chars for packages with + in their names $p =~ s/\+/\\+/g; |