mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Add wiki category for failing builds
This commit is contained in:
parent
69b7f68301
commit
87f6bf2392
1 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,7 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
apklist = []
|
apklist = []
|
||||||
gotcurrentver = False
|
gotcurrentver = False
|
||||||
cantupdate = False
|
cantupdate = False
|
||||||
|
buildfails = False
|
||||||
for apk in apks:
|
for apk in apks:
|
||||||
if apk['id'] == app['id']:
|
if apk['id'] == app['id']:
|
||||||
if str(apk['versioncode']) == app['Current Version Code']:
|
if str(apk['versioncode']) == app['Current Version Code']:
|
||||||
|
@ -100,6 +101,7 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
builtit = True
|
builtit = True
|
||||||
break
|
break
|
||||||
if not builtit:
|
if not builtit:
|
||||||
|
buildfails = True
|
||||||
apklist.append({
|
apklist.append({
|
||||||
'versioncode': int(thisbuild['vercode']),
|
'versioncode': int(thisbuild['vercode']),
|
||||||
'version': thisbuild['version'],
|
'version': thisbuild['version'],
|
||||||
|
@ -144,6 +146,8 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
wikidata += '\n[[Category:Apps with no packages]]\n'
|
wikidata += '\n[[Category:Apps with no packages]]\n'
|
||||||
elif cantupdate and not app['Disabled']:
|
elif cantupdate and not app['Disabled']:
|
||||||
wikidata += "\n[[Category:Apps we can't update]]\n"
|
wikidata += "\n[[Category:Apps we can't update]]\n"
|
||||||
|
elif cantupdate and not app['Disabled']:
|
||||||
|
wikidata += "\n[[Category:Apps with failing builds]]\n"
|
||||||
elif not gotcurrentver and not app['Disabled']:
|
elif not gotcurrentver and not app['Disabled']:
|
||||||
wikidata += '\n[[Category:Apps to Update]]\n'
|
wikidata += '\n[[Category:Apps to Update]]\n'
|
||||||
if app['Update Check Mode'] == 'None':
|
if app['Update Check Mode'] == 'None':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue