mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
yml srclibs: support Subdir as list
This commit is contained in:
parent
1ac7d612b1
commit
5741e6930b
2 changed files with 44 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue