[yum-commits] Branch 'yum-3_2_X' - yum/yumRepo.py

James Antill james at osuosl.org
Wed Sep 30 20:01:37 UTC 2009


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

New commits:
commit 2e5b8c47d0b2a33b74b333a9426171d104e1f7d1
Author: James Antill <james at and.org>
Date:   Wed Sep 30 12:59:25 2009 -0400

    Fix logger calls in yumRepo, atm. we traceback due to no self.logger

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)
 


More information about the Yum-commits mailing list