1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02: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()