aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-01 11:32:23 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-01 11:32:23 +0000
commitfcf29f4a401c46e6e5ac063a69819bf7d6d24ea3 (patch)
tree6d493a91a3f28d2cc11b272853ebaad52de9c4f5
parent150a939cfe47d4f4b351f284367be73febc1a740 (diff)
downloadrpmdrake-fcf29f4a401c46e6e5ac063a69819bf7d6d24ea3.tar
rpmdrake-fcf29f4a401c46e6e5ac063a69819bf7d6d24ea3.tar.gz
rpmdrake-fcf29f4a401c46e6e5ac063a69819bf7d6d24ea3.tar.bz2
rpmdrake-fcf29f4a401c46e6e5ac063a69819bf7d6d24ea3.tar.xz
rpmdrake-fcf29f4a401c46e6e5ac063a69819bf7d6d24ea3.zip
(do_search) default to OR like searches for searches among package names (#37643)
-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/) {