mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
A few more wiki fixes
This commit is contained in:
parent
42497533a5
commit
d2867a3192
1 changed files with 6 additions and 3 deletions
|
@ -146,7 +146,7 @@ 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']:
|
elif buildfails and not app['Disabled']:
|
||||||
wikidata += "\n[[Category:Apps with failing builds]]\n"
|
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'
|
||||||
|
@ -171,8 +171,11 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
apppagename = apppagename.replace('{', '')
|
apppagename = apppagename.replace('{', '')
|
||||||
apppagename = apppagename.replace('}', ' ')
|
apppagename = apppagename.replace('}', ' ')
|
||||||
apppagename = apppagename.replace(':', ' ')
|
apppagename = apppagename.replace(':', ' ')
|
||||||
for page in site.allpages(prefix=apppagename, filterredir='nonredirects'):
|
# Drop double spaces caused mostly by replacing ':' above
|
||||||
if page.name == apppagename:
|
apppagename = apppagename.replace(' ', ' ')
|
||||||
|
for expagename in site.allpages(prefix=apppagename,
|
||||||
|
filterredir='nonredirects', generator=False):
|
||||||
|
if expagename == apppagename:
|
||||||
noclobber = True
|
noclobber = True
|
||||||
# Another reason not to make the redirect page is if the app name
|
# Another reason not to make the redirect page is if the app name
|
||||||
# is the same as it's ID, because that will overwrite the real page
|
# is the same as it's ID, because that will overwrite the real page
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue