Blame SOURCES/BZ-1463723-repotrack-copy-local-packages.patch

82bba0
commit 18acdb310b0d55467cbf403c91cceb35a44ef125
82bba0
Author: Michal Domonkos <mdomonko@redhat.com>
82bba0
Date:   Tue Sep 10 18:48:19 2019 +0200
82bba0
82bba0
    repotrack: copy local packages. BZ 1463723
82bba0
    
82bba0
    While we correctly set the target localpath on the package object, we
82bba0
    don't actually fetch (copy) the package itself if it's local.  This
82bba0
    fixes it.
82bba0
    
82bba0
    Note that, for remote packages (without file://), this change has no
82bba0
    effect (see UrlGrabber.urlgrab() for the context).
82bba0
82bba0
diff --git a/repotrack.py b/repotrack.py
82bba0
index 79b761f..66e5b89 100755
82bba0
--- a/repotrack.py
82bba0
+++ b/repotrack.py
82bba0
@@ -266,7 +266,7 @@ def main():
82bba0
         if not opts.quiet:        
82bba0
             my.logger.info('Downloading %s' % os.path.basename(remote))
82bba0
         pkg.localpath = local # Hack: to set the localpath to what we want.
82bba0
-        path = repo.getPackage(pkg)
82bba0
+        path = repo.getPackage(pkg, copy_local=1)
82bba0
 
82bba0
         if not os.path.exists(local) or not os.path.samefile(path, local):
82bba0
             shutil.copy2(path, local)