mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Write maintainer notes to wiki
This commit is contained in:
parent
ceee4c0e95
commit
356f12ab2f
2 changed files with 6 additions and 1 deletions
|
@ -1057,7 +1057,8 @@ def description_plain(lines, linkres):
|
||||||
return ps.text_plain
|
return ps.text_plain
|
||||||
|
|
||||||
# Parse multiple lines of description as written in a metadata file, returning
|
# Parse multiple lines of description as written in a metadata file, returning
|
||||||
# a single string in wiki format.
|
# a single string in wiki format. Used for the Maintainer Notes field as well,
|
||||||
|
# because it's the same format.
|
||||||
def description_wiki(lines):
|
def description_wiki(lines):
|
||||||
ps = DescriptionFormatter(None)
|
ps = DescriptionFormatter(None)
|
||||||
for line in lines:
|
for line in lines:
|
||||||
|
|
|
@ -76,6 +76,10 @@ def update_wiki(apps, apks):
|
||||||
wikidata += "=Description=\n"
|
wikidata += "=Description=\n"
|
||||||
wikidata += common.description_wiki(app['Description']) + "\n"
|
wikidata += common.description_wiki(app['Description']) + "\n"
|
||||||
|
|
||||||
|
if 'Maintainer Notes' in app:
|
||||||
|
wikidata += "=Maintainer Notes=\n"
|
||||||
|
wikidata += common.description_wiki(app['Maintainer Notes']) + "\n"
|
||||||
|
|
||||||
# Get a list of all packages for this application...
|
# Get a list of all packages for this application...
|
||||||
apklist = []
|
apklist = []
|
||||||
gotcurrentver = False
|
gotcurrentver = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue