mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Remove whitespace from HTTP update check versions
This commit is contained in:
parent
7306e1cf69
commit
0ef818486d
1 changed files with 3 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ def check_http(app):
|
||||||
m = re.search(codeex, page)
|
m = re.search(codeex, page)
|
||||||
if not m:
|
if not m:
|
||||||
raise FDroidException("No RE match for version code")
|
raise FDroidException("No RE match for version code")
|
||||||
vercode = m.group(1)
|
vercode = m.group(1).strip()
|
||||||
|
|
||||||
version = "??"
|
version = "??"
|
||||||
if len(urlver) > 0:
|
if len(urlver) > 0:
|
||||||
|
|
@ -432,6 +432,8 @@ def checkupdates_app(app, first=True):
|
||||||
elif vercode == app.CurrentVersionCode:
|
elif vercode == app.CurrentVersionCode:
|
||||||
logging.info("...up to date")
|
logging.info("...up to date")
|
||||||
else:
|
else:
|
||||||
|
logging.debug("...updating - old vercode={0}, new vercode={1}".format(
|
||||||
|
app.CurrentVersionCode, vercode))
|
||||||
app.CurrentVersion = version
|
app.CurrentVersion = version
|
||||||
app.CurrentVersionCode = str(int(vercode))
|
app.CurrentVersionCode = str(int(vercode))
|
||||||
updating = True
|
updating = True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue