index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-02-04 14:50:24 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-04 14:50:24 +0100 |
commit | 43b983ff97df9216c966023c50ceac9f4a4c36e4 (patch) | |
tree | abcd0be4fa8205d05109b3b1a192d6787478a862 | |
parent | 6df5b189676fd9877ff2168e03779a667d59259c (diff) |
-rwxr-xr-x | lib/mysql-functions | 6 |
diff --git a/lib/mysql-functions b/lib/mysql-functions index 4bd1164..5173bfb 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -57,7 +57,11 @@ mysql_run_query() { < "${query_stdin}" \ > "${query_stdout}" \ 2>> "${query_stderr}"; then - mv "${query_stdin}" "${work_dir}/successful.${query_stdin##*/}" + if grep -qF 'DELETE `binary_packages' "${query_stdin}"; then + mv "${query_stdin}" "${work_dir}/successful.${query_stdin##*/}" + else + rm "${query_stdin}" + fi rm "${query_stderr}" fi if ! [ -f "${query_stdin}" ]; then |