Fix issue where gradle=yes would be removed by rewritemeta

This commit is contained in:
Daniel Martí 2014-09-15 17:03:45 +02:00
parent e038b4424c
commit ce61186cd2
2 changed files with 4 additions and 2 deletions

View file

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