aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-21 12:50:42 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-21 12:50:42 +0000
commit8b3246156a7e5177172e652e4124ec00fbdcea2d (patch)
treed2ab647c3fae4deee743611bf57b7ad58cd041b0
parentb14d69694c045bf7c5bd99cb050b20e660b27bb7 (diff)
downloadrpmdrake-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-xrpmdrake8
1 files changed, 8 insertions, 0 deletions
diff --git a/rpmdrake b/rpmdrake
index 3884d969..e9f99173 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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});