diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-10-01 11:32:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-10-01 11:32:23 +0000 |
commit | fcf29f4a401c46e6e5ac063a69819bf7d6d24ea3 (patch) | |
tree | 6d493a91a3f28d2cc11b272853ebaad52de9c4f5 | |
parent | 150a939cfe47d4f4b351f284367be73febc1a740 (diff) | |
download | rpmdrake-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-- | NEWS | 1 | ||||
-rwxr-xr-x | rpmdrake | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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 @@ -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/) { |