[Yum-devel] [PATCH] Fix logger calls in yumRepo, atm. we traceback

James Antill james at and.org
Wed Sep 30 16:59:38 UTC 2009


---
 yum/yumRepo.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 2bc7476..808e3a7 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -387,7 +387,7 @@ class YumRepository(Repository, config.RepoConf):
             config.writeRawRepoFile(self,only=['enabled'])
         except IOError, e:
             if e.errno == errno.EACCES:
-                self.logger.warning(e)
+                logger.warning(e)
             else:
                 raise IOError, str(e)
 
@@ -398,7 +398,7 @@ class YumRepository(Repository, config.RepoConf):
             config.writeRawRepoFile(self,only=['enabled'])
         except IOError, e:
             if e.errno == errno.EACCES:
-                self.logger.warning(e)
+                logger.warning(e)
             else:
                 raise IOError, str(e)
 
-- 
1.6.2.5



More information about the Yum-devel mailing list