chiark / gitweb /
Translate 'Category:categ1;categ2;...' into 'Categories:categ1,categ2,...'
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 2 Nov 2013 11:04:02 +0000 (12:04 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 2 Nov 2013 11:04:02 +0000 (12:04 +0100)
fdroidserver/common.py

index 947df11fa0de46017d732dfcbb5a020906606ca8..d3b42a1e39220455d5cf279e1df5beec5293dba5 100644 (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':