1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 10:30:13 +01:00

Merge branch 'makebuildserver-avoid-cache-request-flood' into 'master'

makebuildserver: avoid trying to continue cache downloads when checksum is okay

See merge request fdroid/fdroidserver!616
This commit is contained in:
Michael Pöhn 2019-01-29 07:59:41 +00:00
commit 7ea049ba91

View File

@ -423,6 +423,9 @@ def update_cache(cachedir, cachefiles):
local_filename = os.path.join(cachedir, filename)
if os.path.exists(local_filename):
if sha256_for_file(local_filename) == shasum:
logger.info("\t...shasum verified for %s", local_filename)
continue
local_length = os.path.getsize(local_filename)
else:
local_length = -1