chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f67365
)
Translate 'Category:categ1;categ2;...' into 'Categories:categ1,categ2,...'
author
Daniel Martí
<mvdan@mvdan.cc>
Sat, 2 Nov 2013 11:04:02 +0000
(12:04 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Sat, 2 Nov 2013 11:04:02 +0000
(12:04 +0100)
fdroidserver/common.py
patch
|
blob
|
history
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 947df11fa0de46017d732dfcbb5a020906606ca8..d3b42a1e39220455d5cf279e1df5beec5293dba5 100644
(file)
--- 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':