X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcommon;h=9accda153f2b15ba7a35ebf311dae2d82bf67eb6;hb=4ae386b8b703b47c64313eff8ea8ff6c2646937a;hp=d16d2855a8587f6edabbbbcba418a9126881a18f;hpb=3b976e5c087e2ead1641791b1f8a97174c5574f9;p=dak.git diff --git a/config/debian/common b/config/debian/common index d16d2855..9accda15 100644 --- a/config/debian/common +++ b/config/debian/common @@ -68,6 +68,8 @@ function make_buildd_dir () { mv Release Release.gpg buildd/ done + STAMP=${STAMP:-$(date "+%Y%m%d%H%M")} + for dist in $(ls -1 ${incoming}/dists/); do # Skip project trace directory if [ "${dist}x" = "projectx" ]; then continue; fi @@ -89,10 +91,12 @@ function punew_do() { dak generate-packages-sources2 -s "${queue}" + STAMP=${STAMP:-$(date "+%Y%m%d%H%M")} + local exportdir="${queuedir}${qdir}/tree/${STAMP}" local targetdir="${queuedir}${qdir}/export" dak export -q "${queue}" -d "${exportdir}" --all - ln -sfT ${targetdir} ${exportdir} + ln -sfT ${exportdir} ${targetdir} find ${queuedir}${qdir}/tree -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 | xargs --no-run-if-empty -0 rm -rf } @@ -124,6 +128,7 @@ function do_unchecked () { echo "$timestamp": ${changes:-"Nothing to do"} >> $report dak process-upload -a ${UNCHECKED_WITHOUT_LOCK} -d "$unchecked" >> $report + dak process-commands -d "$unchecked" >> $report } # process NEW policy queue