---
 yum/__init__.py |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index f094f3b..5b49dbe 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1982,19 +1982,8 @@ class YumBase(depsolve.Depsolve):
         local_size = 0
         done_repos = set()
         for po in remote_pkgs:
-            #  Recheck if the file is there, works around a couple of weird
-            # edge cases.
             local = po.localPkg()
             i += 1
-            if os.path.exists(local):
-                if self.verifyPkg(local, po, False):
-                    self.verbose_logger.debug(_("using local copy of %s") 
%(po,))
-                    remote_size -= po.size
-                    if hasattr(urlgrabber.progress, 'text_meter_total_size'):
-                        urlgrabber.progress.text_meter_total_size(remote_size,
-                                                                  local_size)
-                    continue
-
             checkfunc = (self.verifyPkg, (po, 1), {})
             dirstat = os.statvfs(po.repo.pkgdir)
             if (dirstat.f_bavail * dirstat.f_bsize) <= long(po.size):
-- 
1.7.4.4

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to