X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian-security%2Fcron.buildd;h=33f847c35db0fbe4bff26c7c90e6d6fcbc1a6e8e;hb=19ffc1de995fd165d9438a8b7769cd7c45bbce60;hp=35f95ad243b7b52ae7e465d8fbf9eed984b18b07;hpb=084ab275f2ecb60b3298c2a488a4554d28c3fd9f;p=dak.git diff --git a/config/debian-security/cron.buildd b/config/debian-security/cron.buildd index 35f95ad2..33f847c3 100755 --- a/config/debian-security/cron.buildd +++ b/config/debian-security/cron.buildd @@ -20,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 @@ -41,12 +41,18 @@ if [ ! -z "${dists}" ]; then trap 'kill -TERM $SSH_PID' 0 for d in ${dists}; do case ${d} in - stable) + oldoldstable) send=squeeze ;; - testing) + oldstable) send=wheezy ;; + stable) + send=jessie + ;; + testing) + send=stretch + ;; *) send=unknown ;;