mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
normalize _extract_app_from_* manifest keys
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
8d9605161c
commit
92608c6ee3
1 changed files with 4 additions and 2 deletions
|
@ -874,7 +874,7 @@ def _confirm_app_install(app, force=False):
|
||||||
# i18n: confirm_app_install_thirdparty
|
# i18n: confirm_app_install_thirdparty
|
||||||
|
|
||||||
if quality in ["danger", "thirdparty"]:
|
if quality in ["danger", "thirdparty"]:
|
||||||
_ask_confirmation("confirm_app_install_" + quality)
|
_ask_confirmation("confirm_app_install_" + quality, kind="hard")
|
||||||
else:
|
else:
|
||||||
_ask_confirmation("confirm_app_install_" + quality, kind="soft")
|
_ask_confirmation("confirm_app_install_" + quality, kind="soft")
|
||||||
|
|
||||||
|
@ -2338,6 +2338,8 @@ def _extract_app_from_folder(path: str) -> Tuple[Dict, str]:
|
||||||
|
|
||||||
manifest["remote"] = {"type": "file", "path": path}
|
manifest["remote"] = {"type": "file", "path": path}
|
||||||
manifest["quality"] = {"level": -1, "state": "thirdparty"}
|
manifest["quality"] = {"level": -1, "state": "thirdparty"}
|
||||||
|
manifest["antifeatures"] = []
|
||||||
|
manifest["potential_alternative_to"] = []
|
||||||
|
|
||||||
return manifest, extracted_app_folder
|
return manifest, extracted_app_folder
|
||||||
|
|
||||||
|
@ -2390,7 +2392,7 @@ def _extract_app_from_gitrepo(
|
||||||
"state": app_info.get("state", "thirdparty"),
|
"state": app_info.get("state", "thirdparty"),
|
||||||
}
|
}
|
||||||
manifest["antifeatures"] = app_info.get("antifeatures", [])
|
manifest["antifeatures"] = app_info.get("antifeatures", [])
|
||||||
manifest["potential_alternative_to"] = app_info.get("potential_alternative_to")
|
manifest["potential_alternative_to"] = app_info.get("potential_alternative_to", [])
|
||||||
|
|
||||||
return manifest, extracted_app_folder
|
return manifest, extracted_app_folder
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue