aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-15 19:47:39 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-15 19:47:39 +0000
commitf473f9b521f3d02941a9dea7ce869527d1b78af6 (patch)
tree84e3ad2b275d319420cce9a3a25b21692efe33eb
parent9e3f751e7aed4e7f3c806b93e785a2202e3ba381 (diff)
downloadperl-URPM-f473f9b521f3d02941a9dea7ce869527d1b78af6.tar
perl-URPM-f473f9b521f3d02941a9dea7ce869527d1b78af6.tar.gz
perl-URPM-f473f9b521f3d02941a9dea7ce869527d1b78af6.tar.bz2
perl-URPM-f473f9b521f3d02941a9dea7ce869527d1b78af6.tar.xz
perl-URPM-f473f9b521f3d02941a9dea7ce869527d1b78af6.zip
(_find_packages_obsoleting) fix for a rare unreproductable crash (mga#4425)
-rw-r--r--NEWS2
-rw-r--r--URPM/Resolve.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index a37bc20..6c983a5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix for a rare crash (mga#4425)
+
Version 3.38.8 - 07 February 2012
- switch from forking unpacker to using librpm
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index c09047a..2ff98a0 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -1228,6 +1228,7 @@ sub _find_packages_obsoleting {
my ($urpm, $state, $p) = @_;
grep {
+ $_ &&
!$_->flag_skip
&& $_->is_arch_compat
&& !exists $state->{rejected}{$_->fullname}