mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +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)
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue