Don't auto update apps with the latest build disabled

This commit is contained in:
Daniel Martí 2014-02-19 11:05:55 +01:00
parent 0c2104039b
commit 32ae8bc565

View file

@ -446,7 +446,10 @@ def main():
gotcur = True gotcur = True
if not latest or int(build['vercode']) > int(latest['vercode']): if not latest or int(build['vercode']) > int(latest['vercode']):
latest = build 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() newbuild = latest.copy()
if 'origlines' in newbuild: if 'origlines' in newbuild:
del newbuild['origlines'] del newbuild['origlines']