Blame SOURCES/BZ-1140864-reposync-urls-option-ignores-downloaded.patch

5b4f08
diff -up yum-utils-1.1.31/reposync.py.old yum-utils-1.1.31/reposync.py
5b4f08
--- yum-utils-1.1.31/reposync.py.old	2014-09-24 09:47:05.000000000 +0200
5b4f08
+++ yum-utils-1.1.31/reposync.py	2014-09-24 09:52:46.147944904 +0200
5b4f08
@@ -293,7 +293,10 @@ def main():
5b4f08
         download_list.sort(sortPkgObj)
5b4f08
         if opts.urls:
5b4f08
             for pkg in download_list:
5b4f08
-                print urljoin(pkg.repo.urls[0], pkg.relativepath)
5b4f08
+                remote = pkg.returnSimple('relativepath')
5b4f08
+                local = os.path.join(local_repo_path, remote)
5b4f08
+                if not (os.path.exists(local) and my.verifyPkg(local, pkg, False)):
5b4f08
+                    print urljoin(pkg.repo.urls[0], pkg.relativepath)
5b4f08
             continue
5b4f08
 
5b4f08
         # create dest dir