summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-18 21:03:16 +0100
committerErich Eckner <git@eckner.net>2018-02-18 21:03:16 +0100
commitf05923eda5d3a307f7fbfb44e451fd9441222aae (patch)
treeb60e88b80d1b7e18b62a662e6f7ea9d56dd13145 /bin/get-package-updates
parent1dca50324cdeb4c88460cd59b5684705c8e5b70a (diff)
downloadbuilder-f05923eda5d3a307f7fbfb44e451fd9441222aae.tar.xz
bin/get-package-updates: use mysql_cleanup
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates12
1 files changed, 2 insertions, 10 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 1ce72e5..70f62e8 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -196,16 +196,8 @@ if ! flock -s ${block_flag} 8; then
exit
fi
-# shellcheck disable=SC2016
-{
- printf 'DELETE FROM `binary_packages`'
- printf ' WHERE `binary_packages`.`repository`=('
- printf 'SELECT `repositories`.`id`'
- printf ' FROM `repositories`'
- printf ' WHERE `repositories`.`name`="to-be-decided"'
- printf ')'
-} | \
- ${mysql_command}
+# shellcheck disable=SC2119
+mysql_cleanup
echo 'Check modified packages from the last update, and put them to the build list.'