summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/build-master-status-from-mysql8
1 files changed, 8 insertions, 0 deletions
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 </body></html>
' | \
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