mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Centralise handling of default gradle flavours
This commit is contained in:
parent
a195556378
commit
34a3405208
4 changed files with 9 additions and 13 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue