aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/gui.pm8
2 files changed, 5 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 593aa74d..0beecb2c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- better error message while downloading mirror list (#39675)
- rpmdrake:
o fix view tooltip (#39694)
+ o really make "by update availability" view usable (#39461)
Version 4.9.11 - 1 April 2008, Thierry Vignaud
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index e8e7c33e..1319ccff 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -874,10 +874,10 @@ or you already installed all of them."));
my $m = pkg2medium($pkgs->{$_->[0]}{pkg}, $urpm); [ $_->[0], $m->{name}, $m->{priority} ];
} @elems));
} elsif ($::mode->[0] eq 'by_presence') {
- add_node(
- $_->[0], $pkgs->{$_->[0]}{pkg}->flag_installed && !$pkgs->{$_->[0]}{pkg}->flag_skip
- ? N("Upgradable") : N("Addable")
- ) foreach $sortmethods{flat}->(@elems);
+ _build_tree($elems, map {
+ [ $_->[0], $pkgs->{$_->[0]}{pkg}->flag_installed && !$pkgs->{$_->[0]}{pkg}->flag_skip
+ ? N("Upgradable") : N("Addable") ];
+ } $sortmethods{flat}->(@elems));
} else {
_build_tree($elems, @elems);
}