From b2406eb70084fe46fcc76e57818b17c5700c9709 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 4 Mar 2018 21:16:39 +0100 Subject: bin/build-master-status-from-mysql: mark build master as insane if check failed --- bin/build-master-status-from-mysql | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/build-master-status-from-mysql') diff --git a/bin/build-master-status-from-mysql b/bin/build-master-status-from-mysql index d1985e7..7cf1b95 100755 --- a/bin/build-master-status-from-mysql +++ b/bin/build-master-status-from-mysql @@ -245,3 +245,11 @@ find "${work_dir}/package-states" -mindepth 1 -maxdepth 1 \ $ a ' | \ sponge "${webserver_directory}/mysql-sanity.html" + +if [ -s "${webserver_directory}/mysql-sanity.html" ] && \ + [ ! -s "${work_dir}/build-master-sanity" ]; then + printf 'deep42thought: my database is dirty again ...\n' | \ + sponge "${irc_dir}/#archlinux-ports/in" + echo 'build master is insane' > \ + "${work_dir}/build-master-sanity" +fi -- cgit v1.2.3-70-g09d2