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

Support "Category" field in metadata, export as <category> in index.xml.

This commit is contained in:
Paul Sokolovsky 2011-06-23 02:10:50 +03:00
parent d8a0d61faa
commit c5f3dcb59a
2 changed files with 4 additions and 0 deletions

View File

@ -278,6 +278,8 @@ def parse_metadata(metafile, **kw):
thisinfo['source'] = value
elif field == 'License':
thisinfo['license'] = value
elif field == 'Category':
thisinfo['category'] = value
elif field == 'Web Site':
thisinfo['web'] = value
elif field == 'Issue Tracker':

View File

@ -314,6 +314,8 @@ for app in apps:
addElement('icon', app['icon'], doc, apel)
addElement('description', app['description'], doc, apel)
addElement('license', app['license'], doc, apel)
if 'category' in app:
addElement('category', app['category'], doc, apel)
addElement('web', app['web'], doc, apel)
addElement('source', app['source'], doc, apel)
addElement('tracker', app['tracker'], doc, apel)