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

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index bbcb2b8..f834aec 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -891,7 +891,8 @@ 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:
+        if size and (self.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
             if avail < long(size):
-- 
1.7.6.5

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to