]> git.decadent.org.uk Git - dak.git/blobdiff - config/backports/common
Revert "config/*/common: do not touch incoming"
[dak.git] / config / backports / common
index 5c488fffb614cb253e75c32cbeacc6da4ece8a53..dd9876a7025236f11ec173378f881a98459f5ac8 100644 (file)
@@ -37,6 +37,15 @@ function wbtrigger() {
 # used by cron.dinstall *and* cron.unchecked.
 function make_buildd_dir () {
     dak manage-build-queues -a
+
+    for dist in $(ls -1 ${incoming}/dists/); do
+        cd ${incoming}/dists/${dist}
+        mkdir -p tree/${STAMP}
+        cp -al ${incoming}/dists/${dist}/buildd/. tree/${STAMP}/
+        ln -sfT tree/${STAMP} ${incoming}/dists/${dist}/current
+        find ./tree -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 | xargs --no-run-if-empty -0 rm -rf
+    done
+
 }
 
 # Do the unchecked processing, in case we have files.