From cead32cb5659dfaf71651532b6b6ec20209600da Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 15 Jul 2023 11:46:51 +0200 Subject: db-update: make deletion of obsolete pool packages in the db fail the intention, if the db query fails * the `sort -u` was unnecessary anyways * the `sort -u` swallowed the exit code of mysql_run_query * failing mysql_run_query should stop the execution flow, i.e. not remove the intention --- bin/db-update | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/db-update b/bin/db-update index 88c567d..4c6ae8e 100755 --- a/bin/db-update +++ b/bin/db-update @@ -683,12 +683,10 @@ mysql_query_update_replaced_bpir() { # somewhat inaccurate { - printf '{\n' - printf ' mysql_run_query' - printf ' | sort -u' + printf 'mysql_run_query' printf ' >> "%s/rm"\n' \ "${perma_tmp_dir}" - printf '} <