diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-04-01 20:49:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-04-01 20:49:18 +0000 |
commit | 11a0769dff9bf9fff722bf7e6623d4e94c62a2b9 (patch) | |
tree | e94bea07221a09a4bc12b5bc570b57838645bce9 | |
parent | f6c140291aa081d90804a26db211dbd61a147081 (diff) | |
download | rpmdrake-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-- | NEWS | 1 | ||||
-rw-r--r-- | Rpmdrake/gui.pm | 8 |
2 files changed, 5 insertions, 4 deletions
@@ -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); } |