chiark / gitweb /
checkupdates: compare CVs as ints, not strs
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 26 Oct 2015 15:13:35 +0000 (16:13 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 26 Oct 2015 15:13:35 +0000 (16:13 +0100)
fdroidserver/checkupdates.py

index 3a9abad05255940559b452ddf883248591d2c7a4..6705b90044d6e9e5d9c824cae5779ad227306509 100644 (file)
@@ -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