chiark / gitweb /
Fix auto-update version code comparison
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 24 Sep 2012 13:05:57 +0000 (14:05 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 24 Sep 2012 13:05:57 +0000 (14:05 +0100)
fdroidserver/checkupdates.py

index 7d4d6804c5aa3d25ce21816f38ce71ae8836d136..f993fa94c489d27394e2ebcf2a5e6f49f1dfeb4f 100644 (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()