mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
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:
parent
cef7553873
commit
f625005ec3
4 changed files with 19 additions and 7 deletions
|
|
@ -24,7 +24,7 @@ from optparse import OptionParser
|
|||
import logging
|
||||
|
||||
import common
|
||||
from common import FDroidPopen, FDroidException
|
||||
from common import FDroidException
|
||||
|
||||
options = None
|
||||
config = None
|
||||
|
|
@ -78,9 +78,7 @@ def main():
|
|||
os.remove(remoteapk)
|
||||
url = 'https://f-droid.org/repo/' + apkfilename
|
||||
logging.info("...retrieving " + url)
|
||||
p = FDroidPopen(['wget', '-nv', url], cwd=tmp_dir)
|
||||
if p.returncode != 0:
|
||||
raise FDroidException("Failed to get " + apkfilename)
|
||||
common.download_file(url, dldir=tmp_dir)
|
||||
|
||||
compare_result = common.compare_apks(
|
||||
os.path.join(unsigned_dir, apkfilename),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue