X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcommon;h=b1fc190146795959a8d8e3b95d03f54fff288d2c;hb=80bba6668e1b33f5e6c43f560d0caa4ffc18ba90;hp=d16d2855a8587f6edabbbbcba418a9126881a18f;hpb=3b976e5c087e2ead1641791b1f8a97174c5574f9;p=dak.git diff --git a/config/debian/common b/config/debian/common index d16d2855..b1fc1901 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 }