]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian-security/cron.buildd
Remove dead code
[dak.git] / config / debian-security / cron.buildd
index f0611c7ccf02c2738b30119fcfced089b6b06214..cd8a6851d47000fdc3bb42c8f7d3ea9c9f0659dd 100755 (executable)
@@ -9,7 +9,7 @@ set -u
 export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars
 . $SCRIPTVARS
 SSH_SOCKET=~/.ssh/buildd.debian.org.socket
-DISTS="oldstable stable"
+DISTS="oldstable stable stable-kfreebsd testing"
 
 if [ -e $ftpdir/Archive_Maintenance_In_Progress ]; then
     exit 0
@@ -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,15 +41,21 @@ if [ ! -z "${dists}" ]; then
     trap 'kill -TERM $SSH_PID' 0
     for d in ${dists}; do
         case ${d} in
-            oldstable)
+            oldoldstable)
                 send=squeeze
                 ;;
-            stable)
+            oldstable)
                 send=wheezy
                 ;;
-            testing)
+            stable)
                 send=jessie
                 ;;
+            stable-kfreebsd)
+                send=jessie-kfreebsd
+                ;;
+            testing)
+                send=stretch
+                ;;
             *)
                 send=unknown
                 ;;