mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02: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:
commit
7ea049ba91
@ -423,6 +423,9 @@ def update_cache(cachedir, cachefiles):
|
|||||||
local_filename = os.path.join(cachedir, filename)
|
local_filename = os.path.join(cachedir, filename)
|
||||||
|
|
||||||
if os.path.exists(local_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)
|
local_length = os.path.getsize(local_filename)
|
||||||
else:
|
else:
|
||||||
local_length = -1
|
local_length = -1
|
||||||
|
Loading…
Reference in New Issue
Block a user