mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
prevent fdroid publish
from repeatedly downloading the developer binary
wget's --continue makes wget not overwrite the existing file, or create a new version with a .1 extension. Instead it tries to finish an incomplete download, or does nothing if the download is complete and matching.
This commit is contained in:
parent
b5ed40684f
commit
a14f82c49e
@ -144,7 +144,7 @@ def main():
|
||||
# Grab the binary from where the developer publishes it...
|
||||
logging.info("...retrieving " + url)
|
||||
srcapk = os.path.join(tmp_dir, url.split('/')[-1])
|
||||
p = FDroidPopen(['wget', '-nv', url], cwd=tmp_dir)
|
||||
p = FDroidPopen(['wget', '-nv', '--continue', url], cwd=tmp_dir)
|
||||
if p.returncode != 0 or not os.path.exists(srcapk):
|
||||
logging.error("...failed to retrieve " + url +
|
||||
" - publish skipped")
|
||||
|
Loading…
Reference in New Issue
Block a user