From 2bede327ae55e55f54089c8b86a294f166c8240c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 17 Dec 2012 16:15:03 +0000 Subject: prevent creating empty transactions in rare cases (that cause rpm to abort on assert while creating a new pool) --- URPM/Resolve.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'URPM') 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}; -- cgit v1.2.1