]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/common
Merge remote branch 'origin/master' into contents
[dak.git] / config / debian / common
index 4a0d6cb997475e289117e1c2a09e28159cd436b1..70f92fdd52464718331cc8adceef09fba6ff1538 100644 (file)
@@ -25,9 +25,24 @@ function debug () {
     fi
 }
 
+function wbtrigger() {
+    MODE=${1:-"often"}
+    SSHOPT="-o BatchMode=yes -o ConnectTimeout=30 -o SetupTimeout=240"
+    if lockfile -r 3 -l 3600 "${LOCK_BUILDD}"; then
+        if [ "x${MODE}x" = "xdailyx" ]; then
+            ssh ${SSHOPT} wbadm@buildd /org/wanna-build/trigger.daily || echo "W-B trigger.daily failed" | mail -s "W-B Daily trigger failed" ftpmaster@ftp-master.debian.org
+        elif [ "x${MODE}x" = "xoftenx" ]; then
+            ssh -q -q ${SSHOPT} wbadm@buildd /org/wanna-build/trigger.often
+        else
+            log_error "Unknown wb trigger mode called"
+        fi
+    fi
+    rm -f "${LOCK_BUILDD}"
+}
+
 # used by cron.dinstall *and* cron.unchecked.
 function make_buildd_dir () {
-    dak manage-build-queues -v buildd
+    dak manage-build-queues -a
 
     cd ${incoming}
     mkdir -p tree/${STAMP}