Blame SOURCES/BZ1410326-Fix-for-history-package-list.patch

5e9bef
From 895f884671924f4c259911eb6d4a4207ab215596 Mon Sep 17 00:00:00 2001
5e9bef
From: Amit Upadhye <upadhyeammit@gmail.com>
5e9bef
Date: Wed, 4 Jan 2017 14:36:34 +0530
5e9bef
Subject: [PATCH] Fix for 'history package-list'
5e9bef
5e9bef
---
5e9bef
 yum/history.py | 4 ++--
5e9bef
 1 file changed, 2 insertions(+), 2 deletions(-)
5e9bef
5e9bef
diff --git a/yum/history.py b/yum/history.py
5e9bef
index f1295de..5e2c035 100644
5e9bef
--- a/yum/history.py
5e9bef
+++ b/yum/history.py
5e9bef
@@ -1471,9 +1471,9 @@ class YumHistory:
5e9bef
         params = list(pkgtupids)
5e9bef
         tids = set()
5e9bef
         if len(params) > yum.constants.PATTERNS_INDEXED_MAX:
5e9bef
-            executeSQL(cur, """SELECT tid FROM trans_data_pkgs""")
5e9bef
+            executeSQL(cur, """SELECT tid,pkgtupid FROM trans_data_pkgs""")
5e9bef
             for row in cur:
5e9bef
-                if row[0] in params:
5e9bef
+                if row[1] in params:
5e9bef
                     tids.add(row[0])
5e9bef
             return tids
5e9bef
         if not params:
5e9bef
-- 
5e9bef
2.4.11
5e9bef