aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-20 19:52:30 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-20 19:52:30 +0000
commit27cc3d5467a0112698c742bfb5e1ac0a0279f031 (patch)
treeefdbe19a4f3c4a191612a4abeb0fadf493b308c9 /Rpmdrake/gui.pm
parentedd0ffaff6022cb6ce29bd6a6e76c1d1518725b7 (diff)
downloadrpmdrake-27cc3d5467a0112698c742bfb5e1ac0a0279f031.tar
rpmdrake-27cc3d5467a0112698c742bfb5e1ac0a0279f031.tar.gz
rpmdrake-27cc3d5467a0112698c742bfb5e1ac0a0279f031.tar.bz2
rpmdrake-27cc3d5467a0112698c742bfb5e1ac0a0279f031.tar.xz
rpmdrake-27cc3d5467a0112698c742bfb5e1ac0a0279f031.zip
(node_state) kill second identic test
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 4962a586..8faa81f2 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -381,12 +381,11 @@ sub warn_if_no_pkg {
sub node_state {
my ($name) = @_;
- return if !$name;
+ #- checks $_[0] -> hack for partial tree displaying
+ return 'XXX' if !$name;
my $pkg = $pkgs->{$name};
my $urpm_obj = $pkg->{pkg};
return warn_if_no_pkg($name) if !$urpm_obj;
- #- checks $_[0] -> hack for partial tree displaying
- return 'XXX' if !$_[0];
$pkg->{selected} ?
($urpm_obj->flag_installed ?
($urpm_obj->flag_upgrade ? 'to_install' : 'to_remove')