aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xrpmdrake5
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8c20d128..3a84ba8b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- rpmdrake:
+ o always create a search category in tree (#29164)
+
Version 4.10 - 24 June 2008, Thierry Vignaud
- MandrivaUpdate: show type of update in mandrivaupdate (fix,
diff --git a/rpmdrake b/rpmdrake
index d0838544..060dfc5d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -184,7 +184,11 @@ sub do_search($$$$$$$) {
@search_results = uniq(@search_results); #- there can be multiple packages with same version/release for different arch's
$searchw->destroy;
}
+
+ my $iter;
if (@search_results) {
+ $elems{$results_ok} = [ map { [ $_, $results_ok ] } sort { uc($a) cmp uc($b) } @search_results ];
+ $iter = $options->{add_parent}->($results_ok);
$options->{add_nodes}->(map { [ $_, $results_ok . ($options->{tree_mode} eq 'by_presence'
? '|' . ($pkgs->{$_}{pkg}->flag_installed ? N("Upgradable") : N("Addable"))
: ($options->{tree_mode} eq 'by_selection'
@@ -197,6 +201,7 @@ sub do_search($$$$$$$) {
$tree->scroll_to_cell($path, undef, 1, 0.5, 0);
}
} else {
+ $iter = $options->{add_parent}->($results_none);
statusbar_msg($results_none, 1);
gtkset_mousecursor_normal($::w->{rwindow}->window);
}