From: Hans-Christoph Steiner Date: Wed, 7 Jan 2015 17:54:01 +0000 (+0100) Subject: prevent `fdroid publish` from repeatedly downloading the developer binary X-Git-Tag: 0.4.0~142^2~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a14f82c49e748aa2efaf748eb076dbf107ab83db;p=fdroidserver.git 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. --- 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")