openSUSE / obs-service-download_files

An OBS source service: download files
GNU General Public License v2.0
8 stars 23 forks source link

Don't reuse the CURL env var to download sources correctly #31

Closed antlarr closed 3 years ago

antlarr commented 3 years ago

This fixes a problem that makes the service sometimes not download all source files silently.

Since the CURL env var was being reused for every Source file processed, the curl command was using more and more --time-cond arguments with all previous existing source files. When one of those source files has a newer mtime than the requested file, the new file wasn't downloaded.

This was found while trying to debug why if you do:

Then the mozilla.keyring file was not downloaded