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

Translate 'Category:categ1;categ2;...' into 'Categories:categ1,categ2,...'

This commit is contained in:
Daniel Martí 2013-11-02 12:04:02 +01:00
parent 3f673654bd
commit f1526faa47

View File

@ -641,6 +641,8 @@ def parse_metadata(metafile, verbose=False):
if len(value) > 0:
raise MetaDataException("Unexpected text on same line as " + field + " in " + metafile.name)
elif fieldtype == 'string':
if field == 'Category' and thisinfo['Categories'] == 'None':
thisinfo['Categories'] = value.replace(';',',')
thisinfo[field] = value
elif fieldtype == 'flag':
if value == 'Yes':