From 6f44c322fd71c99f0126ea4142e2b437f84bac3f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 13 Nov 2021 18:54:11 +0100 Subject: [PATCH] Add check for deprecated --package option for ynh_add_fpm_config --- package_linter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package_linter.py b/package_linter.py index ab902c7..6e0f1fd 100755 --- a/package_linter.py +++ b/package_linter.py @@ -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" ) + @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() def set_is_public_setting(self): if self.containsregex(r"ynh_app_setting_set .*is_public.*"):