[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Revert "config/*/common: do not touch incoming"



This reverts commit 58fc1503ab1484b42e66a93155441634eff6e604.
---
 config/backports/common |    9 +++++++++
 config/debian/common    |   11 +++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/config/backports/common b/config/backports/common
index 5c488ff..dd9876a 100644
--- a/config/backports/common
+++ b/config/backports/common
@@ -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.
diff --git a/config/debian/common b/config/debian/common
index 1d04fd2..4d7ad84 100644
--- a/config/debian/common
+++ b/config/debian/common
@@ -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
-- 
1.7.2.5



Reply to: