mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Handle page names with _ correctly, as for package ids
This commit is contained in:
parent
09e296d2de
commit
6274d071a7
1 changed files with 3 additions and 2 deletions
|
|
@ -139,10 +139,11 @@ def update_wiki(apps, apks, verbose=False):
|
||||||
# with an redirect to itself! (Although it seems like an odd
|
# with an redirect to itself! (Although it seems like an odd
|
||||||
# scenario this happens a lot, e.g. where there is metadata but no
|
# scenario this happens a lot, e.g. where there is metadata but no
|
||||||
# builds or binaries to extract a name from.
|
# builds or binaries to extract a name from.
|
||||||
if app['Name'] == pagename:
|
apppagename = app['Name'].replace('_', ' ')
|
||||||
|
if apppagename == pagename:
|
||||||
noclobber = True
|
noclobber = True
|
||||||
if not noclobber:
|
if not noclobber:
|
||||||
generated_pages[app['Name']] = "#REDIRECT [[" + pagename + "]]\n[[Category:" + wikicat + "]]"
|
generated_pages[apppagename] = "#REDIRECT [[" + pagename + "]]\n[[Category:" + wikicat + "]]"
|
||||||
|
|
||||||
catpages = site.Pages['Category:' + wikicat]
|
catpages = site.Pages['Category:' + wikicat]
|
||||||
existingpages = []
|
existingpages = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue