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:
parent
d8a0d61faa
commit
c5f3dcb59a
@ -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':
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user