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:
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`'