aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-04-01 20:49:18 +0000
committerThierry Vignaud <tv@mandriva.org>2008-04-01 20:49:18 +0000
commit11a0769dff9bf9fff722bf7e6623d4e94c62a2b9 (patch)
treee94bea07221a09a4bc12b5bc570b57838645bce9
parentf6c140291aa081d90804a26db211dbd61a147081 (diff)
downloadrpmdrake-11a0769dff9bf9fff722bf7e6623d4e94c62a2b9.tar
rpmdrake-11a0769dff9bf9fff722bf7e6623d4e94c62a2b9.tar.gz
rpmdrake-11a0769dff9bf9fff722bf7e6623d4e94c62a2b9.tar.bz2
rpmdrake-11a0769dff9bf9fff722bf7e6623d4e94c62a2b9.tar.xz
rpmdrake-11a0769dff9bf9fff722bf7e6623d4e94c62a2b9.zip
(build_tree) really make "by update availability" view usable (#39461)
-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);
}