From fdc84d84ff596e99089510e020495c56c7ecb73e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 27 Feb 2022 23:54:16 +0100 Subject: [PATCH] less warnings --- scripts/install | 2 +- scripts/upgrade | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 546b3ea..99ec037 100755 --- a/scripts/install +++ b/scripts/install @@ -160,7 +160,7 @@ pushd "$final_path" pip install -r requirements.txt mkdir -p "${final_path}"/lcl/{repos,remotes,attachments,releases} ynh_add_config --template="../conf/alembic.ini" --destination="$final_path/alembic.ini" - PAGURE_CONFIG=${final_path}/pagure.cfg python createdb.py --initial alembic.ini + ynh_exec_warn_less PAGURE_CONFIG=${final_path}/pagure.cfg python createdb.py --initial alembic.ini popd ynh_replace_string --match_string="validators.Required" --replace_string="validators.DataRequired" --target_file="$final_path/pagure/forms.py" diff --git a/scripts/upgrade b/scripts/upgrade index 5b8c2ba..50e1eee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -121,10 +121,6 @@ ynh_install_app_dependencies $pkg_dependencies #================================================= # SPECIFIC UPGRADE -#================================================= -# ... -#================================================= - #================================================= # UPDATE A CONFIG FILE #================================================= @@ -172,7 +168,7 @@ pushd "$final_path" pip install -r requirements.txt mkdir -p "${final_path}"/lcl/{repos,remotes,attachments,releases} ynh_add_config --template="../conf/alembic.ini" --destination="$final_path/alembic.ini" - PAGURE_CONFIG=${final_path}/pagure.cfg alembic upgrade head + ynh_exec_warn_less PAGURE_CONFIG=${final_path}/pagure.cfg alembic upgrade head popd ynh_replace_string --match_string="validators.Required" --replace_string="validators.DataRequired" --target_file="$final_path/pagure/forms.py"