summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.'