aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xrpmdrake2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index cb996f40..34ff5d8a 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
o enable to apply priority updates without trying to select any
package
o search
+ * default to OR like searches for searches among package names (#37643)
* enable to disable use of regular expression (default is: disabled)
Version 5.17 - 1 June 2009, Thierry Vignaud
diff --git a/rpmdrake b/rpmdrake
index 7f356d8b..5bd4e1de 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -58,6 +58,8 @@ sub do_search($$$$$$$) {
my $entry = $find_entry->get_text or return;
if (!$use_regexp->[0]) {
$entry = quotemeta $entry;
+ # enable OR search by default:
+ $entry =~ s/\\ /|/g if $current_search_type eq 'normal';
}
# remove leading/trailing spacing when pasting:
if ($entry !~ /\S\s\S/) {