From 82e366c5da4e9c1d044cb41abfab5bd344661723 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Fri, 1 Dec 2023 21:55:13 +0100 Subject: [PATCH] Redownloading again all files in case of prereleases or daily builds. --- loaih/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/loaih/build.py b/loaih/build.py index 0a74e58..1b35aff 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -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