From: Daniel Martí Date: Wed, 19 Feb 2014 10:05:55 +0000 (+0100) Subject: Don't auto update apps with the latest build disabled X-Git-Tag: 0.2~245 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=32ae8bc565fefe985c2ea1cdd831c2c5efc0932d;p=fdroidserver.git Don't auto update apps with the latest build disabled --- diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index a7413643..18f5abb7 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -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']