1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 11:00:10 +01:00

Handle 'Maintainer Notes' field in metadata

This commit is contained in:
Ciaran Gultnieks 2013-11-05 16:21:35 +00:00
parent 2b0badd4c4
commit ceee4c0e95

View File

@ -477,7 +477,7 @@ class vcs_bzr(vcs):
# Get the type expected for a given metadata field. # Get the type expected for a given metadata field.
def metafieldtype(name): def metafieldtype(name):
if name == 'Description': if name in ['Description', 'Maintainer Notes']:
return 'multiline' return 'multiline'
if name == 'Requires Root': if name == 'Requires Root':
return 'flag' return 'flag'
@ -844,6 +844,14 @@ def write_metadata(dest, app):
write_builditem(key, value) write_builditem(key, value)
mf.write('\n') 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']: if app['Archive Policy']:
writefield('Archive Policy') writefield('Archive Policy')
writefield('Auto Update Mode') writefield('Auto Update Mode')