mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
app: add "support_purge" to app info
This commit is contained in:
parent
bb097fedca
commit
a457f8dbcb
1 changed files with 4 additions and 0 deletions
|
@ -237,6 +237,10 @@ def app_info(app, full=False, upgradable=False):
|
|||
ret["supports_config_panel"] = os.path.exists(
|
||||
os.path.join(setting_path, "config_panel.toml")
|
||||
)
|
||||
ret["supports_purge"] = (
|
||||
local_manifest["packaging_format"] >= 2
|
||||
and local_manifest["resources"].get("data_dir") is not None
|
||||
)
|
||||
|
||||
ret["permissions"] = permissions
|
||||
ret["label"] = permissions.get(app + ".main", {}).get("label")
|
||||
|
|
Loading…
Add table
Reference in a new issue