diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-27 10:27:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-27 10:27:29 +0000 |
commit | 3a9142a3abbaf3ba2e8af7715ebde771e4d4dc2f (patch) | |
tree | 58a2f8c044debe7ac30132ee22b30d3217e8171e | |
parent | 5f859f6e58fd91362e4be525eb303d6e9bf85b37 (diff) | |
download | rpmdrake-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-x | rpmdrake | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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' |