Add check for deprecated --package option for ynh_add_fpm_config

This commit is contained in:
Alexandre Aubin 2021-11-13 18:54:11 +01:00
parent d55a5cdeef
commit 6f44c322fd

View file

@ -1998,6 +1998,11 @@ class Script(TestSuite):
"Please consider using 'ynh_add_config' to handle config files instead of gazillions of manual cp + 'ynh_replace_string' + chmod" "Please consider using 'ynh_add_config' to handle config files instead of gazillions of manual cp + 'ynh_replace_string' + chmod"
) )
@test()
def ynh_add_fpm_config_deprecated_package_option(self):
if self.containsregex(r'ynh_add_fpm_config .*package=.*'):
yield Info("Since Yunohost 4.3, option --package for ynh_add_fpm_config is deprecated : please use 'ynh_install_app_dependencies' with **all** your apt dependencies instead (no need to define a special 'extra_php_dependencies'). YunoHost will automatically install any phpX.Y-fpm / phpX.Y-common if needed.")
@test() @test()
def set_is_public_setting(self): def set_is_public_setting(self):
if self.containsregex(r"ynh_app_setting_set .*is_public.*"): if self.containsregex(r"ynh_app_setting_set .*is_public.*"):