mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
Fix my previous commit /o\
This commit is contained in:
parent
806c4ae1fd
commit
bae7463f41
3 changed files with 15 additions and 5 deletions
|
@ -195,7 +195,7 @@ def build_catalog():
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
result_dict_with_manifest_v2 = copy.deepcopy(result_dict)
|
result_dict_with_manifest_v2 = copy.deepcopy(result_dict)
|
||||||
for app in result_dict_with_manifest_v2:
|
for app in result_dict_with_manifest_v2.values():
|
||||||
app["manifest"] = convert_v1_manifest_to_v2_for_catalog(app["manifest"])
|
app["manifest"] = convert_v1_manifest_to_v2_for_catalog(app["manifest"])
|
||||||
|
|
||||||
os.system("mkdir -p ./builds/default/v3/")
|
os.system("mkdir -p ./builds/default/v3/")
|
||||||
|
|
|
@ -37,8 +37,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"] = {}
|
||||||
|
|
|
@ -24,8 +24,13 @@ def convert_v1_manifest_to_v2_for_catalog(manifest):
|
||||||
"ram": {"build": "50M", "runtime": "10M"}
|
"ram": {"build": "50M", "runtime": "10M"}
|
||||||
}
|
}
|
||||||
|
|
||||||
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"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue