Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/modify-package-state
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-01 08:37:27 +0100
committerErich Eckner <git@eckner.net>2018-03-01 08:37:27 +0100
commit6047f2686cfe623e08fbaf4eae0a552ded731eb1 (patch)
treea4e8df807732b035c3a8d430ddb8cb44565b49cd /bin/modify-package-state
parent1b15a4704e80853b99eef83a3e26e7735bec2f54 (diff)
switch from calling ${mysql_command} to calling the wrapper function mysql_run_query()
Diffstat (limited to 'bin/modify-package-state')
-rwxr-xr-xbin/modify-package-state4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/modify-package-state b/bin/modify-package-state
index b0ba53e..8c5fac7 100755
--- a/bin/modify-package-state
+++ b/bin/modify-package-state
@@ -225,7 +225,7 @@ while read -r package reason; do
;;
esac
if printf 'SELECT 1 FROM %s %s AND %s LIMIT 1' "${combiner}" "${selector}" "${tester}" | \
- ${mysql_command} --raw --batch | \
+ mysql_run_query --raw --batch | \
sed '1d' | \
grep -qxF '1'; then
# shellcheck disable=SC2016
@@ -242,7 +242,7 @@ while read -r package reason; do
printf ' AND NOT `b`.`is_tested`'
printf ' AND NOT `repositories`.`name`="deletion-list";\n'
} | \
- ${mysql_command}
+ mysql_run_query
case "${action}" in
'block')
printf '%s' "${reason}" > \