chiark / gitweb /
Write maintainer notes to wiki
authorCiaran Gultnieks <ciaran@ciarang.com>
Tue, 5 Nov 2013 16:39:45 +0000 (16:39 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Tue, 5 Nov 2013 16:40:23 +0000 (16:40 +0000)
fdroidserver/common.py
fdroidserver/update.py

index 9374fb1050c918de447c29e2adf691aaa055990f..5f72f8350be0043268c0b482c69e9a3b06d10ae4 100644 (file)
@@ -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:
index 53c590d06cbb6f1b94451fc9811858f97f855de2..ce2fbf41028331cd930d7561a97b25d4d9936e5e 100644 (file)
@@ -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