mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
buildserver: delete corrupt files from the cache
In order to make CI and other automation easier, delete any corrupt files from the cache if they fail the SHA-256 check. https://jenkins.debian.net/view/reproducible/job/reproducible_setup_fdroid_build_environment_profitbricks3/112/console
This commit is contained in:
parent
d4c6fffb30
commit
8b53ae0ad0
@ -306,6 +306,7 @@ for srcurl, shasum in cachefiles:
|
||||
print("\t...shasum verified for " + local_filename)
|
||||
else:
|
||||
print("Invalid shasum of '" + v + "' detected for " + local_filename)
|
||||
os.remove(local_filename)
|
||||
sys.exit(1)
|
||||
|
||||
# use VirtualBox software virtualization if hardware is not available,
|
||||
|
Loading…
Reference in New Issue
Block a user