aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-31 12:42:14 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-31 12:42:14 +0000
commit8fb21ee2abec5ba751c6f32ca7f1fcfffcdc516f (patch)
tree87b6b984d58995381885e43793111f7cf0e5e63d /Rpmdrake
parent377cda5e39d90c7a487ded95cbfd4deb0bc091cc (diff)
downloadrpmdrake-8fb21ee2abec5ba751c6f32ca7f1fcfffcdc516f.tar
rpmdrake-8fb21ee2abec5ba751c6f32ca7f1fcfffcdc516f.tar.gz
rpmdrake-8fb21ee2abec5ba751c6f32ca7f1fcfffcdc516f.tar.bz2
rpmdrake-8fb21ee2abec5ba751c6f32ca7f1fcfffcdc516f.tar.xz
rpmdrake-8fb21ee2abec5ba751c6f32ca7f1fcfffcdc516f.zip
(format_pkg_simplifiedinfo) do not crash if package is unknow (#39608)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/gui.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index e81017c3..e8e7c33e 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -131,6 +131,7 @@ sub format_pkg_simplifiedinfo {
my ($name, $version, $release) = split_fullname($key);
my $pkg = $pkgs->{$key};
my $upkg = $pkg->{pkg};
+ return if !$upkg;
my $raw_medium = pkg2medium($upkg, $urpm);
my $medium = $raw_medium ? $raw_medium->{name} : undef;
my $update_descr = $descriptions->{$medium}{$name};