From: Joerg Jaspert Date: Sun, 12 Aug 2012 20:12:09 +0000 (+0200) Subject: make the export dir for (o-)p-u-new a bit more atomic X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3b976e5c087e2ead1641791b1f8a97174c5574f9;p=dak.git make the export dir for (o-)p-u-new a bit more atomic Signed-off-by: Joerg Jaspert --- diff --git a/config/debian/common b/config/debian/common index 66a5f29f..d16d2855 100644 --- a/config/debian/common +++ b/config/debian/common @@ -89,9 +89,11 @@ function punew_do() { dak generate-packages-sources2 -s "${queue}" - local exportdir="${queuedir}/${qdir}/export" - rm -rf "${exportdir}" + local exportdir="${queuedir}${qdir}/tree/${STAMP}" + local targetdir="${queuedir}${qdir}/export" dak export -q "${queue}" -d "${exportdir}" --all + ln -sfT ${targetdir} ${exportdir} + find ${queuedir}${qdir}/tree -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 | xargs --no-run-if-empty -0 rm -rf } # These versions used in dinstall