[yum-cvs] yum-utils reposync.py,1.14,1.15

Tim Lauridsen timlau at linux.duke.edu
Tue Jun 5 18:04:04 UTC 2007


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

Modified Files:
	reposync.py 
Log Message:
Added patch by Perry Myers:
fixes reposync so that it is properly skipping packages that have already been downloaded.




Index: reposync.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/reposync.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- reposync.py	30 May 2007 21:44:08 -0000	1.14
+++ reposync.py	5 Jun 2007 18:04:02 -0000	1.15
@@ -212,7 +212,8 @@
                 os.makedirs(localdir)
 
             if (os.path.exists(local) and 
-                str(os.path.getsize(local)) == pkg.returnSimple('packagesize')):
+                os.path.getsize(local) == int(pkg.returnSimple('packagesize'))):
+                
                 
                 if not opts.quiet:
                     my.logger.error("[%s: %-5d of %-5d ] Skipping existing %s" % (repo.id, n, len(download_list), remote))




More information about the Yum-cvs-commits mailing list