mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
add app quality, antifeatures and alternative to base manifest
This commit is contained in:
parent
56de320a9a
commit
c45c0a98f2
1 changed files with 8 additions and 2 deletions
10
src/app.py
10
src/app.py
|
@ -2255,6 +2255,8 @@ def _extract_app_from_folder(path: str) -> Tuple[Dict, str]:
|
|||
logger.debug(m18n.n("done"))
|
||||
|
||||
manifest["remote"] = {"type": "file", "path": path}
|
||||
manifest["quality"] = {"level": -1, "state": "thirdparty"}
|
||||
|
||||
return manifest, extracted_app_folder
|
||||
|
||||
|
||||
|
@ -2301,8 +2303,12 @@ def _extract_app_from_gitrepo(
|
|||
manifest["remote"]["revision"] = revision
|
||||
manifest["lastUpdate"] = app_info.get("lastUpdate")
|
||||
|
||||
manifest["antifeatures"] = app_info["antifeatures"]
|
||||
manifest["potential_alternative_to"] = app_info["potential_alternative_to"]
|
||||
manifest["quality"] = {
|
||||
"level": app_info.get("level", -1),
|
||||
"state": app_info.get("state", "thirdparty"),
|
||||
}
|
||||
manifest["antifeatures"] = app_info.get("antifeatures", [])
|
||||
manifest["potential_alternative_to"] = app_info.get("potential_alternative_to")
|
||||
|
||||
return manifest, extracted_app_folder
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue