From 9bd5983a8dedcbe658cebabf3129ff72355a8bc7 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Mon, 24 Sep 2012 14:05:57 +0100 Subject: [PATCH] Fix auto-update version code comparison --- fdroidserver/checkupdates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 7d4d6804..f993fa94 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -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()