Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-06 09:41:43 +0200
committerErich Eckner <git@eckner.net>2018-06-06 09:44:55 +0200
commit5d4ee96c75951a99060497c484fe605cee638135 (patch)
treee27491c868b3a0cea675b5de691e4687a0cd7e04 /lib/mysql-functions
parent4cf2cfcc0f07501a26c73cf7d9f8884d8ba262c9 (diff)
lib/mysql-functions: fix mysql queries
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 1c8a3f0..d159fe9 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -874,7 +874,7 @@ mysql_cleanup() {
printf ');\n'
# remove jobs from build slaves that are not on the build-list
if [ "${operator}" = 'DELETE' ]; then
- printf 'UPDATE `repositories`'
+ printf 'UPDATE `binary_packages_in_repositories`'
else
printf 'SELECT COUNT(DISTINCT `build_slaves`.`id`) FROM `binary_packages_in_repositories`'
fi
@@ -887,7 +887,7 @@ mysql_cleanup() {
printf ' SET `build_slaves`.`currently_building`=NULL'
fi
printf ' WHERE `build_slaves`.`currently_building` IS NOT NULL'
- printf ' AND `repositories`.`id` IS NULL;\n'
+ printf ' AND `binary_packages_in_repositories`.`id` IS NULL;\n'
# remove build orders from build slaves which have not connected within 1h
if [ "${operator}" = 'DELETE' ]; then
printf 'UPDATE `build_slaves`'