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

Fix auto-update version code comparison

This commit is contained in:
Ciaran Gultnieks 2012-09-24 14:05:57 +01:00
parent 2486ca1f0c
commit 9bd5983a8d

View File

@ -236,7 +236,7 @@ def main():
for build in app['builds']:
if build['vercode'] == app['Current Version Code']:
gotcur = True
if not latest or build['vercode'] > latest['vercode']:
if not latest or int(build['vercode']) > int(latest['vercode']):
latest = build
if not gotcur:
newbuild = latest.copy()