diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-04-01 21:00:33 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-04-01 21:00:33 +0000 |
commit | 8859e8d9f5d112c0ee7c6baac6e7d10d728608aa (patch) | |
tree | c8179e4a7a9c72c2093222467cec89e2dd817380 /Rpmdrake/gui.pm | |
parent | acb480046792574cf88cec52bb92a3ea08ad84b7 (diff) | |
download | rpmdrake-8859e8d9f5d112c0ee7c6baac6e7d10d728608aa.tar rpmdrake-8859e8d9f5d112c0ee7c6baac6e7d10d728608aa.tar.gz rpmdrake-8859e8d9f5d112c0ee7c6baac6e7d10d728608aa.tar.bz2 rpmdrake-8859e8d9f5d112c0ee7c6baac6e7d10d728608aa.tar.xz rpmdrake-8859e8d9f5d112c0ee7c6baac6e7d10d728608aa.zip |
(build_tree) split out installed packages if any in "by update availability" view
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index b8d79656..706c16df 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -876,8 +876,9 @@ or you already installed all of them.")); } elsif ($::mode->[0] eq 'by_presence') { _build_tree($elems, map { my $pkg = $pkgs->{$_->[0]}{pkg}; - [ $_->[0], $pkg->flag_installed && !$pkg->flag_skip - ? N("Upgradable") : N("Addable") ]; + [ $_->[0], $pkg->flag_installed ? + (!$pkg->flag_skip && $pkg->flag_upgrade ? N("Upgradable") : N("Installed")) + : N("Addable") ]; } $sortmethods{flat}->(@elems)); } else { _build_tree($elems, @elems); |