chiark / gitweb /
Also strip comma-separated build flags
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 15 Feb 2014 10:00:19 +0000 (11:00 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 15 Feb 2014 10:00:19 +0000 (11:00 +0100)
fdroidserver/metadata.py

index 7a81fd0c47690815a1c6f2027750d25a93450f62..12c99bf68962d0c5c89af19637e634f457841aa0 100644 (file)
@@ -504,7 +504,7 @@ def parse_metadata(metafile):
         t = flagtype(pk)
         if t == 'list':
             # Port legacy ';' separators
-            thisbuild[pk] = pv.replace(';',',').split(',')
+            thisbuild[pk] = [v.strip() for v in pv.replace(';',',').split(',')]
         elif t == 'string':
             thisbuild[pk] = pv
         elif t == 'script':