mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
manifestv2: fix v1/v2 conversion for maintainers
This commit is contained in:
parent
d9e326f2cd
commit
dc1f5725d0
1 changed files with 7 additions and 2 deletions
|
@ -2076,8 +2076,13 @@ def _convert_v1_manifest_to_v2(manifest):
|
|||
"ram": {"build": "50M", "runtime": "10M"}
|
||||
}
|
||||
|
||||
maintainer = manifest.get("maintainer", {}).get("name")
|
||||
manifest["maintainers"] = [maintainer] if maintainer else []
|
||||
maintainers = manifest.get("maintainer", {})
|
||||
if isinstance(maintainers, list):
|
||||
maintainers = [m['name'] for m in maintainers]
|
||||
else:
|
||||
maintainers = [maintainers["name"]] if maintainers.get("name") else []
|
||||
|
||||
manifest["maintainers"] = maintainers
|
||||
|
||||
install_questions = manifest["arguments"]["install"]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue