aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/pkg.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9e2564f5..9a85cf9f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- do not offer to pick only update media unless using --expert (mga#2317)
+- workaround a crash (mga#9197)
Version 5.41.2 - 16 Feb 2013, Funda Wang
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 53f1f09e..fca2483d 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -189,6 +189,7 @@ sub extract_header {
sub find_installed_version {
my ($p) = @_;
+ return if !$p;
my $version;
open_rpm_db()->traverse_tag_find('name', $p->name, sub { $version = $_[0]->EVR });
$version || N("(none)");