Blob Blame Raw
From b8882ca4019d2ffe4a4d9fd980aa75bbabf523d4 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Tue, 18 Sep 2012 10:53:37 +0100
Subject: [PATCH] Ensure we cancel background transactions when an interactive
 transaction is scheduled

---
 src/pk-transaction-list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pk-transaction-list.c b/src/pk-transaction-list.c
index a4584cc..605733d 100644
--- a/src/pk-transaction-list.c
+++ b/src/pk-transaction-list.c
@@ -851,7 +851,7 @@ pk_transaction_list_commit (PkTransactionList *tlist, const gchar *tid)
 	 * transaction foreground? */
 	ret = pk_conf_get_bool (tlist->priv->conf,
 				"CancelBackgroundTransactions");
-	if (!ret) {
+	if (ret) {
 		if (!item->background && pk_transaction_list_get_background_running (tlist)) {
 			g_debug ("cancelling running background transactions and instead running %s",
 				item->tid);
-- 
1.7.12