1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

Remove whitespace from HTTP update check versions

This commit is contained in:
Ciaran Gultnieks 2017-03-15 08:58:08 +00:00
parent 7306e1cf69
commit 0ef818486d

View File

@ -59,7 +59,7 @@ def check_http(app):
m = re.search(codeex, page)
if not m:
raise FDroidException("No RE match for version code")
vercode = m.group(1)
vercode = m.group(1).strip()
version = "??"
if len(urlver) > 0:
@ -432,6 +432,8 @@ def checkupdates_app(app, first=True):
elif vercode == app.CurrentVersionCode:
logging.info("...up to date")
else:
logging.debug("...updating - old vercode={0}, new vercode={1}".format(
app.CurrentVersionCode, vercode))
app.CurrentVersion = version
app.CurrentVersionCode = str(int(vercode))
updating = True