Move requests code out of common.py, closes #114

This commit is contained in:
Daniel Martí 2015-08-31 17:05:08 -07:00
parent 3bc0d43786
commit 04e6f2ebfd
4 changed files with 42 additions and 17 deletions

View file

@ -24,6 +24,7 @@ from optparse import OptionParser
import logging
import common
import net
from common import FDroidException
options = None
@ -78,7 +79,7 @@ def main():
os.remove(remoteapk)
url = 'https://f-droid.org/repo/' + apkfilename
logging.info("...retrieving " + url)
common.download_file(url, dldir=tmp_dir)
net.download_file(url, dldir=tmp_dir)
compare_result = common.compare_apks(
os.path.join(unsigned_dir, apkfilename),