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

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