From 356f12ab2f4a4da8bc85d2be3e466ed3e0e85539 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 5 Nov 2013 16:39:45 +0000 Subject: [PATCH] Write maintainer notes to wiki --- fdroidserver/common.py | 3 ++- fdroidserver/update.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 9374fb10..5f72f835 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1057,7 +1057,8 @@ def description_plain(lines, linkres): return ps.text_plain # 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): ps = DescriptionFormatter(None) for line in lines: diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 53c590d0..ce2fbf41 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -76,6 +76,10 @@ def update_wiki(apps, apks): wikidata += "=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... apklist = [] gotcurrentver = False