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:
parent
5ce730a3a0
commit
69b7f68301
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user