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:
parent
3f673654bd
commit
f1526faa47
@ -641,6 +641,8 @@ def parse_metadata(metafile, verbose=False):
|
|||||||
if len(value) > 0:
|
if len(value) > 0:
|
||||||
raise MetaDataException("Unexpected text on same line as " + field + " in " + metafile.name)
|
raise MetaDataException("Unexpected text on same line as " + field + " in " + metafile.name)
|
||||||
elif fieldtype == 'string':
|
elif fieldtype == 'string':
|
||||||
|
if field == 'Category' and thisinfo['Categories'] == 'None':
|
||||||
|
thisinfo['Categories'] = value.replace(';',',')
|
||||||
thisinfo[field] = value
|
thisinfo[field] = value
|
||||||
elif fieldtype == 'flag':
|
elif fieldtype == 'flag':
|
||||||
if value == 'Yes':
|
if value == 'Yes':
|
||||||
|
Loading…
Reference in New Issue
Block a user