openSUSE / obs-service-download_files

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

remove leftover partial file when wget fails #20

Closed birkenfeld closed 6 years ago

birkenfeld commented 7 years ago

When wget fails, it still opens the output file, which will be left as at least a 0-byte file. On OBS, this can lead to "successfully" built RPMs with 0-byte files if the SOURCE files are not unpacked but just copied to their final location. Instead, remove whatever file is left over.