diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-20 19:52:30 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-20 19:52:30 +0000 |
commit | 27cc3d5467a0112698c742bfb5e1ac0a0279f031 (patch) | |
tree | efdbe19a4f3c4a191612a4abeb0fadf493b308c9 /Rpmdrake | |
parent | edd0ffaff6022cb6ce29bd6a6e76c1d1518725b7 (diff) | |
download | rpmdrake-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')
-rw-r--r-- | Rpmdrake/gui.pm | 5 |
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') |