manifestv2: fix v1/v2 conversion for maintainers

This commit is contained in:
Alexandre Aubin 2022-08-03 21:58:56 +02:00
parent 1cc37842c9
commit 6e9b9bf5a3

View file

@ -36,8 +36,13 @@ def _convert_v1_manifest_to_v2(app_path):
"ram.runtime": "50M" "ram.runtime": "50M"
} }
maintainer = manifest.get("maintainer", {}).get("name") maintainers = manifest.get("maintainer", {})
manifest["maintainers"] = [maintainer] if maintainer else [] 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"] install_questions = manifest["arguments"]["install"]
manifest["install"] = {} manifest["install"] = {}