aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/gui.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r--Rpmdrake/gui.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index a1221438..11b3874b 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -183,8 +183,13 @@ sub format_pkg_info {
}
sub node_state {
- my $pkg = $pkgs->{$_[0]};
+ my ($name) = @_;
+ my $pkg = $pkgs->{$name};
my $urpm_obj = $pkg->{pkg};
+ if (!$urpm_obj) {
+ log::explanations("skipping non existing package $name");
+ 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')