Centralise handling of default gradle flavours

This commit is contained in:
Daniel Martí 2014-09-13 13:04:24 +02:00
parent a195556378
commit 34a3405208
4 changed files with 9 additions and 13 deletions

View file

@ -601,7 +601,11 @@ def parse_metadata(metafile):
t = flagtype(pk)
if t == 'list':
# Port legacy ';' separators
thisbuild[pk] = [v.strip() for v in pv.replace(';', ',').split(',')]
pv = [v.strip() for v in pv.replace(';', ',').split(',')]
if pk == 'gradle':
if len(pv) == 1 and pv[0] in ['main', 'yes', '']:
pv = []
thisbuild[pk] = pv
elif t == 'string' or t == 'script':
thisbuild[pk] = pv
elif t == 'bool':