1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-15 10:50:09 +02:00

[status_json] Don't list disabled builds as needs updated

Closes: #898
This commit is contained in:
Jochen Sprickerhof 2021-05-13 10:30:48 +02:00 committed by Hans-Christoph Steiner
parent 1bad5b5c6c
commit 33fa918a69

View File

@ -182,12 +182,12 @@ def status_update_json(apps, apks):
if appid not in failedBuilds:
failedBuilds[appid] = []
failedBuilds[appid].append(build.versionCode)
if validapks == 0:
output['noPackages'].append(appid)
if not gotcurrentver:
output['needsUpdate'].append(appid)
if app.get('UpdateCheckMode') == 'None' and not app.get('Disabled'):
output['noUpdateCheck'].append(appid)
if validapks == 0:
output['noPackages'].append(appid)
if not gotcurrentver:
output['needsUpdate'].append(appid)
if app.get('UpdateCheckMode') == 'None':
output['noUpdateCheck'].append(appid)
common.write_status_json(output, options.pretty)