From ceee4c0e95fdadb30e88e5fc0e7ecaf6d550268d Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 5 Nov 2013 16:21:35 +0000 Subject: [PATCH] Handle 'Maintainer Notes' field in metadata --- fdroidserver/common.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index a92ef6b9..9374fb10 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -477,7 +477,7 @@ class vcs_bzr(vcs): # Get the type expected for a given metadata field. def metafieldtype(name): - if name == 'Description': + if name in ['Description', 'Maintainer Notes']: return 'multiline' if name == 'Requires Root': return 'flag' @@ -844,6 +844,14 @@ def write_metadata(dest, app): write_builditem(key, value) mf.write('\n') + if 'Maintainer Notes' in app: + writefield('Maintainer Notes', '') + for line in app['Maintainer Notes']: + mf.write(line + '\n') + mf.write('.\n') + mf.write('\n') + + if app['Archive Policy']: writefield('Archive Policy') writefield('Auto Update Mode')