aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-12-06 09:39:40 +0000
committerThierry Vignaud <tv@mageia.org>2012-12-06 09:39:40 +0000
commitc38e2972b73f7d2593f0fc11b7c8fade1c6de835 (patch)
tree3350493fd3aec85a4836284796997910433c0be6
parentbc5368712767c63bb261c1f8b9cca069651fc7c7 (diff)
downloadrpmdrake-c38e2972b73f7d2593f0fc11b7c8fade1c6de835.tar
rpmdrake-c38e2972b73f7d2593f0fc11b7c8fade1c6de835.tar.gz
rpmdrake-c38e2972b73f7d2593f0fc11b7c8fade1c6de835.tar.bz2
rpmdrake-c38e2972b73f7d2593f0fc11b7c8fade1c6de835.tar.xz
rpmdrake-c38e2972b73f7d2593f0fc11b7c8fade1c6de835.zip
(get_pkgs) add a fix for a rare crash (mga#7439)
Conflicts: NEWS
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/pkg.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 33164c60..118cca19 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- add a fix for a rare crash (mga#7439)
- look at _all_ config files and only those instead of manually
matching file paths beginning with "^/etc" (mga#8310)
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 2a4be887..6662472f 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -577,7 +577,7 @@ sub get_pkgs {
installable => \@installable_pkgs,
updates => \@updates,
meta_pkgs => \@meta_pkgs,
- gui_pkgs => [ grep { member(($all_pkgs{$_}{pkg}->fullname)[0], @gui_pkgs) } keys %all_pkgs ],
+ gui_pkgs => [ grep { my $p = $all_pkgs{$_}{pkg}; $p && member(($p->fullname)[0], @gui_pkgs) } keys %all_pkgs ],
update_descr => $update_descr,
backports => [ @inactive_backports, @active_backports ],
inactive_backports => \@inactive_backports