From a14f82c49e748aa2efaf748eb076dbf107ab83db Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 7 Jan 2015 18:54:01 +0100 Subject: [PATCH] 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. --- fdroidserver/publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/publish.py b/fdroidserver/publish.py index 48d0503e..fc54ee4f 100644 --- a/fdroidserver/publish.py +++ b/fdroidserver/publish.py @@ -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") -- 2.30.2