remove dependency on wget for 'build' and 'verify'

To make the core tools portable to platforms like Mac OS X and Windows,
remove the dependency on wget and instead use Python Requests, which
probably has better performance anyway.
This commit is contained in:
Hans-Christoph Steiner 2015-07-23 21:42:21 -07:00
parent cef7553873
commit f625005ec3
4 changed files with 19 additions and 7 deletions

View file

@ -1088,9 +1088,7 @@ def main():
logging.info("...retrieving " + url)
of = "{0}_{1}.apk.binary".format(app['id'], thisbuild['vercode'])
of = os.path.join(output_dir, of)
p = FDroidPopen(['wget', '-nv', '-O', of, url])
if p.returncode != 0 or not os.path.exists(of):
raise BuildException("...failed to retrieve " + url)
common.download_file(url, local_filename=of)
build_succeeded.append(app)
wikilog = "Build succeeded"