X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian-security%2Fcron.buildd;h=cd8a6851d47000fdc3bb42c8f7d3ea9c9f0659dd;hb=f54c87736c85e9c72b1693f9db50848992f88f61;hp=1b60593ddeec922e2d4274f2ec4ed599da16cf24;hpb=41034f1347f3bd08b197e1c13612bddba8f2df90;p=dak.git diff --git a/config/debian-security/cron.buildd b/config/debian-security/cron.buildd index 1b60593d..cd8a6851 100755 --- a/config/debian-security/cron.buildd +++ b/config/debian-security/cron.buildd @@ -3,12 +3,13 @@ # Executed after cron.unchecked set -e +set -o pipefail set -u export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars . $SCRIPTVARS SSH_SOCKET=~/.ssh/buildd.debian.org.socket -DISTS=$(dak admin s list) +DISTS="oldstable stable stable-kfreebsd testing" if [ -e $ftpdir/Archive_Maintenance_In_Progress ]; then exit 0 @@ -19,8 +20,8 @@ now=$(date +%s) check=$(( now - 3*60 )) for dist in $DISTS; do - smodtime=$(stat -c "%Y" $base/buildd/$dist/Sources.gz) - pmodtime=$(stat -c "%Y" $base/buildd/$dist/Packages.gz) + smodtime=$(stat -c "%Y" $base/build-queues/dists/buildd-$dist/updates/*/source/Sources.gz | sort -n | tail -1) + pmodtime=$(stat -c "%Y" $base/build-queues/dists/buildd-$dist/updates/*/binary-*/Packages.gz | sort -n | tail -1) if [ ${smodtime} -gt ${check} ] || [ ${pmodtime} -gt ${check} ]; then # Packages/Sources changed in the last minutes @@ -40,14 +41,20 @@ if [ ! -z "${dists}" ]; then trap 'kill -TERM $SSH_PID' 0 for d in ${dists}; do case ${d} in + oldoldstable) + send=squeeze + ;; oldstable) - send=lenny + send=wheezy ;; stable) - send=squeeze + send=jessie + ;; + stable-kfreebsd) + send=jessie-kfreebsd ;; testing) - send=wheezy + send=stretch ;; *) send=unknown