]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/common
Revert "config/*/common: do not touch incoming"
[dak.git] / config / debian / common
index 1d04fd23238b0e83b16577bba4e6fec0c19120cc..4d7ad846fc7d03c9b90b46e3844555cfa786a44f 100644 (file)
@@ -34,6 +34,17 @@ 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
+        # Skip project trace directory
+        if [ "${dist}x" = "projectx" ]; then continue; fi
+        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
+
 }
 
 # Process (oldstable)-proposed-updates "NEW" queue