mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-11 09:40:28 +03: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
1 changed files with 1 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ for srcurl, shasum in cachefiles:
|
||||||
print("\t...shasum verified for " + local_filename)
|
print("\t...shasum verified for " + local_filename)
|
||||||
else:
|
else:
|
||||||
print("Invalid shasum of '" + v + "' detected for " + local_filename)
|
print("Invalid shasum of '" + v + "' detected for " + local_filename)
|
||||||
|
os.remove(local_filename)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# use VirtualBox software virtualization if hardware is not available,
|
# use VirtualBox software virtualization if hardware is not available,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue