diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-25 19:08:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-25 19:08:12 +0000 |
commit | e60c4465770d4f00e66072ba624961de3416e34b (patch) | |
tree | c5d1847de1ae58a6596b271e0910d95d43c81fa0 /Rpmdrake/gui.pm | |
parent | b5983e7541c0e9456428318eaab8c2cecfda6f92 (diff) | |
download | rpmdrake-e60c4465770d4f00e66072ba624961de3416e34b.tar rpmdrake-e60c4465770d4f00e66072ba624961de3416e34b.tar.gz rpmdrake-e60c4465770d4f00e66072ba624961de3416e34b.tar.bz2 rpmdrake-e60c4465770d4f00e66072ba624961de3416e34b.tar.xz rpmdrake-e60c4465770d4f00e66072ba624961de3416e34b.zip |
(node_state) split/reindent for readability
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 58d7d8fb..e32048cd 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -233,11 +233,15 @@ sub node_state { return 'XXX'; } #- checks $_[0] -> hack for partial tree displaying - $_[0] ? $pkg->{selected} ? - ($urpm_obj->flag_installed ? ($urpm_obj->flag_upgrade ? 'to_install' : 'to_remove') : 'to_install') + return 'XXX' if $_[0]; + $pkg->{selected} ? + ($urpm_obj->flag_installed ? + ($urpm_obj->flag_upgrade ? 'to_install' : 'to_remove') + : 'to_install') : ($urpm_obj->flag_installed ? - ($urpm_obj->flag_upgrade ? 'to_update' : ($urpm_obj->flag_base ? 'base' : 'installed')) - : 'uninstalled') : 'XXX'; + ($urpm_obj->flag_upgrade ? 'to_update' + : ($urpm_obj->flag_base ? 'base' : 'installed')) + : 'uninstalled'); } my ($common, $w, %wtree, %ptree, %pix); |