aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-01 11:32:33 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-01 11:32:33 +0000
commit713c69a80a214b447d64a84e78065b63046a1715 (patch)
treefbee3619a03b8fdac23a7cde94f0d3d210dfd399
parent94751c695014e82014c6e074097aec2a6945f6db (diff)
downloadrpmdrake-713c69a80a214b447d64a84e78065b63046a1715.tar
rpmdrake-713c69a80a214b447d64a84e78065b63046a1715.tar.gz
rpmdrake-713c69a80a214b447d64a84e78065b63046a1715.tar.bz2
rpmdrake-713c69a80a214b447d64a84e78065b63046a1715.tar.xz
rpmdrake-713c69a80a214b447d64a84e78065b63046a1715.zip
(do_search) fix searching for summary on startup (#49293)
(was broken since 253201 on 2009/02/23: "slightly reduce memory usage by not keeping around summaries ")
-rw-r--r--NEWS1
-rwxr-xr-xrpmdrake2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 64e74503..5f4af8b7 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@
* default to OR like searches for searches among package names (#37643)
* enable to disable use of regular expression (default is: disabled)
* enable to search in full or short package names (#46473)
+ * fix searching for summary on startup (#49293)
* rerun search after reloading package list (#49834)
Version 5.17 - 1 June 2009, Thierry Vignaud
diff --git a/rpmdrake b/rpmdrake
index c0ca5bff..6eb5669c 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -90,7 +90,7 @@ sub do_search($$$$$$$) {
} elsif ($current_search_type eq 'summaries') {
my $count;
foreach (@filtered_pkgs) {
- next if $pkgs->{$_}{summary} !~ /$entry_rx/;
+ next if get_summary($_) !~ /$entry_rx/;
push @search_results, $_;
# FIXME: should be done for all research types
last if $count++ > 2000;