aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
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 /Rpmdrake/gui.pm
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)
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm8
1 files changed, 4 insertions, 4 deletions
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);
}