#522 Fix #521 Lookaside API method doesn't return in URL
Merged 4 years ago by onosek. Opened 4 years ago by sturivny.

file modified
+1 -1
@@ -54,7 +54,7 @@ 

  

          self.log = logging.getLogger(__name__)

  

-         self.download_path = '%(name)s/%(filename)s/%(hash)s/%(filename)s'

+         self.download_path = '%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s'

  

      def print_progress(self, to_download, downloaded, to_upload, uploaded):

          if not sys.stdout.isatty():

no initial comment

For which tool it has to be fixed?
In fedpkg, download_path from rpkg object is overridden (and it should work there): https://pagure.io/fedpkg/blob/master/f/fedpkg/lookaside.py
Same for rhpkg.

Fixed for the: https://github.com/fedora-eln/distrobaker
Thank you for the update, I'll take a look.

I was discussing the change. Probably, it is safe to merge it. But I am not 100% sure whether all dependent tools use overridding or the default path.
It won't harm rhpkg, fedpkg, rfpkg. We don't know about centpkg or others (if there are any).

This (@bstinson) centpkg repo (https://bitbucket.org/bstinsonmhk/centpkg/src/master/src/centpkg/__init__.py) looks safe because they make their own url path. And overrides whole sources method.

Commit 32be737 fixes this pull-request

Pull-Request has been merged by onosek

4 years ago

I additionally modified unittests.

Metadata