Redownloading again all files in case of prereleases or daily builds.

This commit is contained in:
emiliano.vavassori 2023-12-01 21:55:13 +01:00
parent 49e0ab5593
commit 82e366c5da
1 changed files with 3 additions and 1 deletions

View File

@ -239,7 +239,9 @@ class Build(loaih.RemoteBuild):
os.chdir(self.download_path)
for archive in tarballs:
# If the archive is already there, do not do anything.
if os.path.exists(archive):
# If it is a daily build or a pre-release, due to filename
# clashes, redownload the whole build.
if os.path.exists(archive) and self.query not in { 'daily', 'prerelease' }:
continue
# Download the archive