X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcommon;h=dd9876a7025236f11ec173378f881a98459f5ac8;hb=077bf03c4495465e28388f52e471877b7afa821a;hp=5c488fffb614cb253e75c32cbeacc6da4ece8a53;hpb=58fc1503ab1484b42e66a93155441634eff6e604;p=dak.git diff --git a/config/backports/common b/config/backports/common index 5c488fff..dd9876a7 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.