aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-25 19:08:12 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-25 19:08:12 +0000
commite60c4465770d4f00e66072ba624961de3416e34b (patch)
treec5d1847de1ae58a6596b271e0910d95d43c81fa0 /Rpmdrake
parentb5983e7541c0e9456428318eaab8c2cecfda6f92 (diff)
downloadrpmdrake-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')
-rw-r--r--Rpmdrake/gui.pm12
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);