chiark / gitweb /
Don't auto update apps with the latest build disabled
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 19 Feb 2014 10:05:55 +0000 (11:05 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 19 Feb 2014 10:05:55 +0000 (11:05 +0100)
fdroidserver/checkupdates.py

index a7413643c33b6b0541338b8ee001bebf85b2eb21..18f5abb7f10e1f8121437a34b1853cd37bae8b6f 100644 (file)
@@ -446,7 +446,10 @@ def main():
                         gotcur = True
                     if not latest or int(build['vercode']) > int(latest['vercode']):
                         latest = build
-                if not gotcur:
+
+                if 'disable' in latest:
+                    logging.warn('Skipping %s since the latest build is disabled' % app['id'])
+                elif not gotcur:
                     newbuild = latest.copy()
                     if 'origlines' in newbuild:
                         del newbuild['origlines']