[yum-commits] Branch 'yum-3_2_X' - yum/__init__.py
James Antill
james at osuosl.org
Tue Mar 30 18:31:17 UTC 2010
yum/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ecfd7b5e643bab7337d44c981157768b86cab439
Author: James Antill <james at and.org>
Date: Tue Mar 30 14:31:11 2010 -0400
Test for repo_setopts, only there for cli
diff --git a/yum/__init__.py b/yum/__init__.py
index 88d4467..f7dd8f2 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -377,7 +377,7 @@ class YumBase(depsolve.Depsolve):
thisrepo.repo_config_age = repo_age
thisrepo.repofile = repofn
- if thisrepo.id in self.repo_setopts:
+ if hasattr(self, 'repo_setopts') and thisrepo.id in self.repo_setopts:
for opt in self.repo_setopts[thisrepo.id].items:
setattr(thisrepo, opt, getattr(self.repo_setopts[thisrepo.id], opt))
More information about the Yum-commits
mailing list