1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Include entries for failed builds in wiki data

This commit is contained in:
Ciaran Gultnieks 2013-10-09 09:48:06 +01:00
parent 5ce730a3a0
commit 69b7f68301

View File

@ -93,6 +93,18 @@ def update_wiki(apps, apks, verbose=False):
'version': thisbuild['version'],
'buildproblem': thisbuild['commit'][1:]
})
else:
builtit = False
for apk in apklist:
if apk['versioncode'] == int(thisbuild['vercode']):
builtit = True
break
if not builtit:
apklist.append({
'versioncode': int(thisbuild['vercode']),
'version': thisbuild['version'],
'buildproblem': "The build for this version appears to have failed. Check the build logs."
})
# Sort with most recent first...
apklist = sorted(apklist, key=lambda apk: apk['versioncode'], reverse=True)