aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--URPM/Resolve.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8d1a548..a48ae56 100644
--- a/NEWS
+++ b/NEWS
@@ -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};