mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
makebuildserver: avoid trying to continue cache downloads when checksum is okay
This commit is contained in:
parent
4cbe1d1222
commit
8c025b91d8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue