diff options
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index f0ca57bc..0fb3b8d6 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -384,7 +384,14 @@ sub node_state { return 'XXX' if !$name; my $pkg = $pkgs->{$name}; my $urpm_obj = $pkg->{pkg}; - return warn_if_no_pkg($name) if !$urpm_obj; + if (!$urpm_obj) { + my $res = eval { warn_if_no_pkg($name) }; + if (my $err = $@) { + warn "ERROR: $err\n"; + log::explanations("ERROR: $err"); + } + return $res; + } $pkg->{selected} ? ($urpm_obj->flag_installed ? ($urpm_obj->flag_upgrade ? 'to_install' : 'to_remove') |