diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-09-21 12:50:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-09-21 12:50:42 +0000 |
commit | 8b3246156a7e5177172e652e4124ec00fbdcea2d (patch) | |
tree | d2ab647c3fae4deee743611bf57b7ad58cd041b0 | |
parent | b14d69694c045bf7c5bd99cb050b20e660b27bb7 (diff) | |
download | rpmdrake-8b3246156a7e5177172e652e4124ec00fbdcea2d.tar rpmdrake-8b3246156a7e5177172e652e4124ec00fbdcea2d.tar.gz rpmdrake-8b3246156a7e5177172e652e4124ec00fbdcea2d.tar.bz2 rpmdrake-8b3246156a7e5177172e652e4124ec00fbdcea2d.tar.xz rpmdrake-8b3246156a7e5177172e652e4124ec00fbdcea2d.zip |
(do_search) when searching in summaries, perform it directly since we
now have all of them pinned in memory (making such searches an order
of magniture faster)
-rwxr-xr-x | rpmdrake | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -67,6 +67,14 @@ sub do_search($$$$$$$) { # FIXME: should be done for all research types last if $count++ > 2000; } + } elsif ($current_search_type eq 'summaries') { + my $count; + foreach (@filtered_pkgs) { + next if $pkgs->{$_}{summary} !~ /$entry_rx/; + push @search_results, $_; + # FIXME: should be done for all research types + last if $count++ > 2000; + } } else { my $searchstop; my $searchw = ugtk2->new(N("Software Management"), grab => 1, transient => $w->{real_window}); |