# 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
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
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