[Yum-devel] [PATCH] Handle avail_po.returnPrco('strong_requires') in RpmBase.

Zdeněk Pavlas zpavlas at redhat.com
Tue May 15 11:19:50 UTC 2012


https://fedorahosted.org/autoqa/ticket/421
---
 yum/sqlitesack.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index f6df93e..13f6d48 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -382,7 +382,7 @@ class YumAvailablePackageSqlite(YumAvailablePackage, PackageObject, RpmBase):
 
     def returnPrco(self, prcotype, printable=False):
         prcotype = _share_data(prcotype)
-        if isinstance(self.prco[prcotype], tuple):
+        if isinstance(self.prco.get(prcotype), tuple):
             sql = "SELECT name, version, release, epoch, flags " \
                   "FROM %s WHERE pkgKey = ?" % prcotype
             cur = self._sql_MD('primary', sql, (self.pkgKey,))
-- 
1.7.4.4



More information about the Yum-devel mailing list