mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix _app_upgradable() for legacy/old apps: settings was not set
This commit is contained in:
parent
e8ad12de24
commit
f3103195c7
1 changed files with 1 additions and 2 deletions
|
@ -138,6 +138,7 @@ def app_info(app, full=False, upgradable=False):
|
||||||
"description": _value_for_locale(local_manifest["description"]),
|
"description": _value_for_locale(local_manifest["description"]),
|
||||||
"name": permissions.get(app + ".main", {}).get("label", local_manifest["name"]),
|
"name": permissions.get(app + ".main", {}).get("label", local_manifest["name"]),
|
||||||
"version": local_manifest.get("version", "-"),
|
"version": local_manifest.get("version", "-"),
|
||||||
|
"settings": settings,
|
||||||
}
|
}
|
||||||
|
|
||||||
if "domain" in settings and "path" in settings:
|
if "domain" in settings and "path" in settings:
|
||||||
|
@ -169,8 +170,6 @@ def app_info(app, full=False, upgradable=False):
|
||||||
ret["current_version"] = f" ({current_revision})"
|
ret["current_version"] = f" ({current_revision})"
|
||||||
ret["new_version"] = f" ({new_revision})"
|
ret["new_version"] = f" ({new_revision})"
|
||||||
|
|
||||||
ret["settings"] = settings
|
|
||||||
|
|
||||||
if not full:
|
if not full:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue