From a637be20bf60ae59d483620280590369a73a2073 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 8 Aug 2018 16:05:14 +0200 Subject: [PATCH] More agressive deprecation messages for app checkurl and initdb --- locales/en.json | 1 - src/yunohost/app.py | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/locales/en.json b/locales/en.json index edea4eed6..25c8eda2e 100644 --- a/locales/en.json +++ b/locales/en.json @@ -14,7 +14,6 @@ "app_change_url_identical_domains": "The old and new domain/url_path are identical ('{domain:s}{path:s}'), nothing to do.", "app_change_url_no_script": "This application '{app_name:s}' doesn't support url modification yet. Maybe you should upgrade the application.", "app_change_url_success": "Successfully changed {app:s} url to {domain:s}{path:s}", - "app_checkurl_is_deprecated": "Packagers /!\\ 'app checkurl' is deprecated ! Please use 'app register-url' instead !", "app_extraction_failed": "Unable to extract installation files", "app_id_invalid": "Invalid app id", "app_incompatible": "The app {app} is incompatible with your YunoHost version", diff --git a/src/yunohost/app.py b/src/yunohost/app.py index cc37051e7..944a2c7e8 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1181,7 +1181,7 @@ def app_checkurl(auth, url, app=None): """ - logger.warning(m18n.n("app_checkurl_is_deprecated")) + logger.error("Packagers /!\\ : 'app checkurl' is deprecated ! Please use the helper 'ynh_webpath_register' instead !") from yunohost.domain import domain_list @@ -1238,6 +1238,9 @@ def app_initdb(user, password=None, db=None, sql=None): sql -- Initial SQL file """ + + logger.error("Packagers /!\\ : 'app initdb' is deprecated ! Please use the helper 'ynh_mysql_setup_db' instead !") + if db is None: db = user