From bb1eba88bf94c64348a7e0af8fe5dac5f23eaf39 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 31 Mar 2020 05:26:03 +0200 Subject: [PATCH] Be more agressive and report these old helpers as errors. --- package_linter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package_linter.py b/package_linter.py index 5322cd8..f070d78 100755 --- a/package_linter.py +++ b/package_linter.py @@ -594,13 +594,13 @@ class Script(): def check_deprecated_practices(self): if self.contains("yunohost app setting"): - print_warning("'yunohost app setting' shouldn't be used directly. Please use 'ynh_app_setting_(set,get,delete)' instead.") + print_error("Do not use 'yunohost app setting' directly. Please use 'ynh_app_setting_(set,get,delete)' instead.") if self.contains("yunohost app checkurl"): - print_warning("'yunohost app checkurl' is deprecated. Please use 'ynh_webpath_register' instead.") + print_error("'yunohost app checkurl' is obsolete!!! Please use 'ynh_webpath_register' instead.") if self.contains("yunohost app checkport"): - print_warning("'yunohost app checkport' is deprecated. Please use 'ynh_find_port' instead.") + print_error("'yunohost app checkport' is obsolete!!! Please use 'ynh_find_port' instead.") if self.contains("yunohost app initdb"): - print_warning("'yunohost app initdb' is deprecated. Please use 'ynh_mysql_setup_db' instead.") + print_error("'yunohost app initdb' is obsolete!!! Please use 'ynh_mysql_setup_db' instead.") if self.contains("exit"): print_warning("'exit' command shouldn't be used. Please use 'ynh_die' instead.")