mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Include entries for failed builds in wiki data
This commit is contained in:
parent
5ce730a3a0
commit
69b7f68301
1 changed files with 12 additions and 0 deletions
|
@ -93,6 +93,18 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
'version': thisbuild['version'],
|
'version': thisbuild['version'],
|
||||||
'buildproblem': thisbuild['commit'][1:]
|
'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...
|
# Sort with most recent first...
|
||||||
apklist = sorted(apklist, key=lambda apk: apk['versioncode'], reverse=True)
|
apklist = sorted(apklist, key=lambda apk: apk['versioncode'], reverse=True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue