diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-02-27 21:37:35 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-02-27 21:37:35 +0000 |
commit | fe6ff5f258394c88e9a1446c77f8783727913f0a (patch) | |
tree | e789d932e44a5f9705a46f264893168fea8e25f7 /Rpmdrake | |
parent | 5f76105e0558ce0e338ed6c353383ba1e6135587 (diff) | |
download | rpmdrake-fe6ff5f258394c88e9a1446c77f8783727913f0a.tar rpmdrake-fe6ff5f258394c88e9a1446c77f8783727913f0a.tar.gz rpmdrake-fe6ff5f258394c88e9a1446c77f8783727913f0a.tar.bz2 rpmdrake-fe6ff5f258394c88e9a1446c77f8783727913f0a.tar.xz rpmdrake-fe6ff5f258394c88e9a1446c77f8783727913f0a.zip |
(find_installed_version) workaround a crash (mga#9197)
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/pkg.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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)"); |