mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
manifestv2: fix v1/v2 conversion for maintainers
This commit is contained in:
parent
1cc37842c9
commit
6e9b9bf5a3
1 changed files with 7 additions and 2 deletions
|
@ -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"] = {}
|
||||||
|
|
Loading…
Reference in a new issue