[kindafix] app_install: override manifest name by given label

This commit is contained in:
axolotle 2022-11-26 12:44:15 +01:00
parent a54e976e21
commit 2d3546247a

View file

@ -1010,6 +1010,10 @@ def app_install(
recursive=True, recursive=True,
) )
# Override manifest name by given label
if label:
manifest["name"] = label
if packaging_format >= 2: if packaging_format >= 2:
from yunohost.utils.resources import AppResourceManager from yunohost.utils.resources import AppResourceManager
@ -1029,7 +1033,7 @@ def app_install(
permission_create( permission_create(
app_instance_name + ".main", app_instance_name + ".main",
allowed=["all_users"], allowed=["all_users"],
label=label if label else manifest["name"], label=manifest["name"],
show_tile=False, show_tile=False,
protected=False, protected=False,
) )