Blame SOURCES/0001-transaction-Remove-obsoleted-packages-when-committin.patch

9fd87f
From d8c8a2491e20996a5e1cbd428e38eb5cdeccd342 Mon Sep 17 00:00:00 2001
9fd87f
From: Kalev Lember <kalevlember@gmail.com>
9fd87f
Date: Wed, 15 Apr 2015 21:05:13 +0200
9fd87f
Subject: [PATCH] transaction: Remove obsoleted packages when committing the
9fd87f
 transaction
9fd87f
9fd87f
This matches the behaviour with DNF / yum that automatically remove any
9fd87f
obsoleted packages.
9fd87f
9fd87f
https://bugzilla.redhat.com/show_bug.cgi?id=1211991
9fd87f
---
9fd87f
 libhif/hif-transaction.c | 1 +
9fd87f
 1 file changed, 1 insertion(+)
9fd87f
9fd87f
diff --git a/libhif/hif-transaction.c b/libhif/hif-transaction.c
9fd87f
index 40a0f7c..2c929bb 100644
9fd87f
--- a/libhif/hif-transaction.c
9fd87f
+++ b/libhif/hif-transaction.c
9fd87f
@@ -1272,6 +1272,7 @@ hif_transaction_commit (HifTransaction *transaction,
9fd87f
 
9fd87f
 	/* add things to remove */
9fd87f
 	priv->remove = hif_goal_get_packages (goal,
9fd87f
+					      HIF_PACKAGE_INFO_OBSOLETE,
9fd87f
 					      HIF_PACKAGE_INFO_REMOVE,
9fd87f
 					      -1);
9fd87f
 	for (i = 0; i < priv->remove->len; i++) {
9fd87f
-- 
9fd87f
2.3.5
9fd87f