openSUSE / obs-service-download_files

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

Download files only on the "last" *.spec files #33

Closed ret2libc closed 3 years ago

ret2libc commented 3 years ago

When executing multiple services, different versions of the same .spec might be generated. Before this patch, download_files downloaded files from all of them, which however could cause problems for example for deb/ubuntu builds that may automatically detect the orig archive (e.g. if set_version changes the URL to download files from).

This patch fixes the problem by looking at all the *.spec files referencing the same base spec file and by considering only the longest file name, because it is the one where the more services were applied.