1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

Some diagnostic output for http update check mode

This commit is contained in:
Ciaran Gultnieks 2013-10-29 19:32:51 +00:00
parent ba96af1a78
commit 3a045e40c3

View File

@ -47,6 +47,7 @@ def check_http(app):
vercode = "99999999" vercode = "99999999"
if len(urlcode) > 0: if len(urlcode) > 0:
print "...requesting {0}".format(urlcode)
req = urllib2.Request(urlcode, None) req = urllib2.Request(urlcode, None)
resp = urllib2.urlopen(req, None, 20) resp = urllib2.urlopen(req, None, 20)
page = resp.read() page = resp.read()
@ -59,6 +60,7 @@ def check_http(app):
version = "??" version = "??"
if len(urlver) > 0: if len(urlver) > 0:
if urlver != '.': if urlver != '.':
print "...requesting {0}".format(urlver)
req = urllib2.Request(urlver, None) req = urllib2.Request(urlver, None)
resp = urllib2.urlopen(req, None, 20) resp = urllib2.urlopen(req, None, 20)
page = resp.read() page = resp.read()