mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Support "Category" field in metadata, export as <category> in index.xml.
This commit is contained in:
parent
d8a0d61faa
commit
c5f3dcb59a
2 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue