]> git.decadent.org.uk Git - dak.git/commitdiff
config/debian-security/cron.buildd: use new buildd queue location
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 28 Jul 2013 15:48:56 +0000 (17:48 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 28 Jul 2013 15:48:56 +0000 (17:48 +0200)
config/debian-security/cron.buildd

index f0611c7ccf02c2738b30119fcfced089b6b06214..1f1d4c6556a9756d2bb636162f4673a2d5641e32 100755 (executable)
@@ -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