diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-26 18:21:47 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-26 18:21:47 +0000 |
commit | 075841152153c85eedaa3dd0751ad0e5a11c7ad7 (patch) | |
tree | 474941903c171abebeef15ccdea91f199b1b1d2a /Rpmdrake/gui.pm | |
parent | 6a26114b468214f18aa15d6f4189f292c8d3fd26 (diff) | |
download | rpmdrake-075841152153c85eedaa3dd0751ad0e5a11c7ad7.tar rpmdrake-075841152153c85eedaa3dd0751ad0e5a11c7ad7.tar.gz rpmdrake-075841152153c85eedaa3dd0751ad0e5a11c7ad7.tar.bz2 rpmdrake-075841152153c85eedaa3dd0751ad0e5a11c7ad7.tar.xz rpmdrake-075841152153c85eedaa3dd0751ad0e5a11c7ad7.zip |
(node_state) only use 'backport' icon if not selected
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 5b210869..a1f4588a 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -384,14 +384,14 @@ sub node_state { my $pkg = $pkgs->{$name}; my $urpm_obj = $pkg->{pkg}; return warn_if_no_pkg($name) if !$urpm_obj; - return 'backport' if $pkgs->{$name}{is_backport}; $pkg->{selected} ? ($urpm_obj->flag_installed ? ($urpm_obj->flag_upgrade ? 'to_install' : 'to_remove') : 'to_install') : ($urpm_obj->flag_installed ? + ($pkgs->{$name}{is_backport} ? 'backport' : ($urpm_obj->flag_upgrade ? 'to_update' - : ($urpm_obj->flag_base ? 'base' : 'installed')) + : ($urpm_obj->flag_base ? 'base' : 'installed'))) : 'uninstalled'); } |