aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-27 10:27:29 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-27 10:27:29 +0000
commit3a9142a3abbaf3ba2e8af7715ebde771e4d4dc2f (patch)
tree58a2f8c044debe7ac30132ee22b30d3217e8171e
parent5f859f6e58fd91362e4be525eb303d6e9bf85b37 (diff)
downloadrpmdrake-3a9142a3abbaf3ba2e8af7715ebde771e4d4dc2f.tar
rpmdrake-3a9142a3abbaf3ba2e8af7715ebde771e4d4dc2f.tar.gz
rpmdrake-3a9142a3abbaf3ba2e8af7715ebde771e4d4dc2f.tar.bz2
rpmdrake-3a9142a3abbaf3ba2e8af7715ebde771e4d4dc2f.tar.xz
rpmdrake-3a9142a3abbaf3ba2e8af7715ebde771e4d4dc2f.zip
(do_search) only search in package listed in current mode (#29708)
-rwxr-xr-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index f2445eaa..66bd9d85 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -65,7 +65,7 @@ sub do_search($$$$$$$) {
if ($current_search_type ne 'normal') {
if ($MODE eq 'remove') {
if ($current_search_type eq 'descriptions') {
- @search_results = grep { ($pkgs->{$_}{summary} . $pkgs->{$_}{description}) =~ $entry_rx } keys %$pkgs;
+ @search_results = grep { ($pkgs->{$_}{summary} . $pkgs->{$_}{description}) =~ $entry_rx } @filtered_pkgs;
} else {
slow_func_statusbar(
N("Please wait, searching..."),
@@ -135,7 +135,7 @@ sub do_search($$$$$$$) {
$searchw->destroy;
}
} else {
- @search_results = grep { $_ =~ $entry_rx } keys %$pkgs;
+ @search_results = grep { $_ =~ $entry_rx } @filtered_pkgs;
}
if (@search_results) {
$options->{add_nodes}->(map { [ $_, N("Search results") . ($options->{tree_mode} eq 'by_presence'