From: Daniel Martí Date: Mon, 26 Oct 2015 15:13:35 +0000 (+0100) Subject: checkupdates: compare CVs as ints, not strs X-Git-Tag: 0.5.0~21 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=da92845f9cc071dddaca6e0e414535c783d4d6b7;p=fdroidserver.git checkupdates: compare CVs as ints, not strs --- diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 3a9abad0..6705b900 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -462,7 +462,7 @@ def checkupdates_app(app, first=True): gotcur = False latest = None for build in app['builds']: - if build['vercode'] >= app['Current Version Code']: + if int(build['vercode']) >= int(app['Current Version Code']): gotcur = True if not latest or int(build['vercode']) > int(latest['vercode']): latest = build