diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-12-17 16:15:03 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-12-17 16:15:03 +0000 |
commit | 2bede327ae55e55f54089c8b86a294f166c8240c (patch) | |
tree | 7d75eac665548889611dd9ce3c8610dbb80748fb | |
parent | 04c50c20a8c2ca3374dc48cd464994982eba47ab (diff) | |
download | perl-URPM-2bede327ae55e55f54089c8b86a294f166c8240c.tar perl-URPM-2bede327ae55e55f54089c8b86a294f166c8240c.tar.gz perl-URPM-2bede327ae55e55f54089c8b86a294f166c8240c.tar.bz2 perl-URPM-2bede327ae55e55f54089c8b86a294f166c8240c.tar.xz perl-URPM-2bede327ae55e55f54089c8b86a294f166c8240c.zip |
prevent creating empty transactions in rare cases
(that cause rpm to abort on assert while creating a new pool)
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM/Resolve.pm | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ - rpm-4.11 fixes: o fix compiling with it + o prevent creating empty transactions in rare cases + (that cause rpm to abort on assert while creating a new pool) Version 4.21.1 - 7 December 2012 diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index a7496de..b0df240 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -2010,7 +2010,7 @@ sub build_transaction_set { if ($state->{orphans_to_remove}) { my @l = map { scalar $_->fullname } @{$state->{orphans_to_remove}}; - push @{$state->{transaction}}, { remove => \@l }; + push @{$state->{transaction}}, { remove => \@l } if @l; } $state->{transaction}; |