From: Daniel Martí Date: Sat, 2 Nov 2013 11:04:02 +0000 (+0100) Subject: Translate 'Category:categ1;categ2;...' into 'Categories:categ1,categ2,...' X-Git-Tag: 0.1~242^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f1526faa475372911ebb3f4c69e8c05ea801c838;p=fdroidserver.git Translate 'Category:categ1;categ2;...' into 'Categories:categ1,categ2,...' --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 947df11f..d3b42a1e 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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':