normalize _extract_app_from_* manifest keys

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
Axolotle 2022-12-04 13:19:11 +01:00 committed by GitHub
parent 8d9605161c
commit 92608c6ee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -874,7 +874,7 @@ def _confirm_app_install(app, force=False):
# i18n: confirm_app_install_thirdparty
if quality in ["danger", "thirdparty"]:
_ask_confirmation("confirm_app_install_" + quality)
_ask_confirmation("confirm_app_install_" + quality, kind="hard")
else:
_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["quality"] = {"level": -1, "state": "thirdparty"}
manifest["antifeatures"] = []
manifest["potential_alternative_to"] = []
return manifest, extracted_app_folder
@ -2390,7 +2392,7 @@ def _extract_app_from_gitrepo(
"state": app_info.get("state", "thirdparty"),
}
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