summaryrefslogtreecommitdiff
path: root/bin/build-master-status-from-mysql
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-20 13:23:21 +0100
committerErich Eckner <git@eckner.net>2018-03-20 13:23:21 +0100
commit5ed904c0b9fae476e45621b2e21b61ea8391db2b (patch)
tree7133035cdeb8059c69bf2b6df9356e09dcb82659 /bin/build-master-status-from-mysql
parent112da5617dba1c83e5c3cfc10092c24ebc652a5f (diff)
downloadbuilder-5ed904c0b9fae476e45621b2e21b61ea8391db2b.tar.xz
bin/build-master-status-from-mysql: ignore duplicates of handed out assignments
Diffstat (limited to 'bin/build-master-status-from-mysql')
-rwxr-xr-xbin/build-master-status-from-mysql4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build-master-status-from-mysql b/bin/build-master-status-from-mysql
index e4dd313..5f27d89 100755
--- a/bin/build-master-status-from-mysql
+++ b/bin/build-master-status-from-mysql
@@ -36,7 +36,7 @@ sort "${work_dir}/build-list" > \
# shellcheck disable=SC2016
{
- printf 'SELECT '
+ printf 'SELECT DISTINCT '
printf '`package_sources`.`%s`,' \
'pkgbase' 'git_revision' 'mod_git_revision'
printf '`upstream_repositories`.`name`'
@@ -248,7 +248,7 @@ find "${work_dir}/package-states" -mindepth 1 -maxdepth 1 \
if [ -s "${webserver_directory}/mysql-sanity.html" ] && \
[ ! -s "${work_dir}/build-master-sanity" ]; then
- printf 'oh girls, my database is dirty again ...\n' | \
+ printf 'girls, my database is dirty again ...\n' | \
irc_say
echo 'build master is insane' > \
"${work_dir}/build-master-sanity"