[yum-commits] repoquery.py

James Antill james at osuosl.org
Mon Jun 14 06:13:30 UTC 2010


 repoquery.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 41b685fb198ef39c89c98812829535f6f58bdaa1
Author: James Antill <james at and.org>
Date:   Mon Jun 14 02:13:24 2010 -0400

    Fix reponame for installed

diff --git a/repoquery.py b/repoquery.py
index 827583d..fd16afa 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -251,7 +251,7 @@ class pkgQuery:
         return loc
 
     def fmt_reponame(self, **kw):
-        if hasattr(self.pkg, 'repo'):
+        if hasattr(self.pkg, 'repo') and hasattr(self.pkg.repo, 'name'):
             return self.pkg.repo.name
         return self.pkg.repoid
 


More information about the Yum-commits mailing list