summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--urpm/args.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d76fb2bd..cedf5c63 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@
- urpmf:
o add special code for --files simple case, it makes urpmf 3x faster for
this often used case
+ o display a warning when searching "xxx(yyy)" since it is handled as a
+ regexp and so the parentheses are useless. suggest using --literal
- urpmq:
o add --provides
o fix option -a : display packages of all compatible archs (#36942)
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;