[yum-commits] yum/yumRepo.py

James Antill james at osuosl.org
Fri Aug 31 17:51:47 UTC 2012


 yum/yumRepo.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e75114b4dfd364e012a772944f78842d7ee279f3
Author: James Antill <james at and.org>
Date:   Fri Aug 31 13:51:42 2012 -0400

    Use copy_local instead of self.copy_local.

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index f834aec..7f1f1db 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -891,7 +891,7 @@ class YumRepository(Repository, config.RepoConf):
             except Errors.MediaError, e:
                 verbose_logger.log(logginglevels.DEBUG_2, "Error getting package from media; falling back to url %s" %(e,))
 
-        if size and (self.copy_local or not url or
+        if size and (copy_local or not url or
                      not (url.startswith("/") or url.startswith("file:"))):
             dirstat = os.statvfs(os.path.dirname(local))
             avail = dirstat.f_bavail * dirstat.f_bsize


More information about the Yum-commits mailing list