_check_manifest_requirements: raise error for "packaging_format" check

This commit is contained in:
axolotle 2022-12-21 13:04:09 +01:00
parent 57c36a668d
commit cf2e7e1295

View file

@ -2480,12 +2480,8 @@ def _check_manifest_requirements(
logger.debug(m18n.n("app_requirements_checking", app=app_id)) logger.debug(m18n.n("app_requirements_checking", app=app_id))
# Packaging format # Packaging format
yield ( if manifest["packaging_format"] not in [1, 2]:
"packaging_format", raise YunohostValidationError("app_packaging_format_not_supported")
manifest["packaging_format"] in (1, 2),
{},
"app_packaging_format_not_supported", # i18n: app_packaging_format_not_supported
)
# Yunohost version # Yunohost version
required_yunohost_version = manifest["integration"].get("yunohost", "4.3").strip(">= ") required_yunohost_version = manifest["integration"].get("yunohost", "4.3").strip(">= ")