[yum-cvs] yum/yum __init__.py,1.255,1.256

Jeremy Katz katzj at linux.duke.edu
Thu Sep 28 22:22:42 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv7846/yum

Modified Files:
	__init__.py 
Log Message:
if we have a local copy of the package that checksums fine, use it instead
of trying to do a range request from the end of the file (rh#208460)208460)208460)208460)


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.255
retrieving revision 1.256
diff -u -r1.255 -r1.256
--- __init__.py	27 Sep 2006 03:05:18 -0000	1.255
+++ __init__.py	28 Sep 2006 22:22:40 -0000	1.256
@@ -657,6 +657,9 @@
                         
                     if cursize >= totsize: # otherwise keep it around for regetting
                         os.unlink(local)
+                else:
+                    self.verbose_logger.debug("using local copy of %s" %(po,))
+                    continue
                         
             remote_pkgs.append(po)
             




More information about the Yum-cvs-commits mailing list