yml srclibs: support Subdir as list

This commit is contained in:
Michael Pöhn 2020-02-29 15:50:06 +01:00
parent 1ac7d612b1
commit 5741e6930b
2 changed files with 44 additions and 1 deletions

View file

@ -778,7 +778,12 @@ def parse_yml_srclib(metadatapath):
return thisinfo
else:
if key == 'Subdir':
thisinfo[key] = str(data[key] or '').split(',')
if isinstance(data[key], str):
thisinfo[key] = data[key].split(',')
elif isinstance(data[key], list):
thisinfo[key] = data[key]
elif data[key] is None:
thisinfo[key] = ['']
elif key == 'Prepare' and isinstance(data[key], list):
thisinfo[key] = ' && '.join(data[key])
else: