aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-04-01 20:56:58 +0000
committerThierry Vignaud <tv@mandriva.org>2008-04-01 20:56:58 +0000
commitacb480046792574cf88cec52bb92a3ea08ad84b7 (patch)
treea01d9dd39127ddb489ad66bff620b48213799e1b /Rpmdrake/gui.pm
parent11a0769dff9bf9fff722bf7e6623d4e94c62a2b9 (diff)
downloadrpmdrake-acb480046792574cf88cec52bb92a3ea08ad84b7.tar
rpmdrake-acb480046792574cf88cec52bb92a3ea08ad84b7.tar.gz
rpmdrake-acb480046792574cf88cec52bb92a3ea08ad84b7.tar.bz2
rpmdrake-acb480046792574cf88cec52bb92a3ea08ad84b7.tar.xz
rpmdrake-acb480046792574cf88cec52bb92a3ea08ad84b7.zip
(build_tree) siplify 'by_presence' management
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 1319ccff..b8d79656 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -875,7 +875,8 @@ or you already installed all of them."));
} @elems));
} elsif ($::mode->[0] eq 'by_presence') {
_build_tree($elems, map {
- [ $_->[0], $pkgs->{$_->[0]}{pkg}->flag_installed && !$pkgs->{$_->[0]}{pkg}->flag_skip
+ my $pkg = $pkgs->{$_->[0]}{pkg};
+ [ $_->[0], $pkg->flag_installed && !$pkg->flag_skip
? N("Upgradable") : N("Addable") ];
} $sortmethods{flat}->(@elems));
} else {