[dak/master] make the export dir for (o-)p-u-new a bit more atomic
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
config/debian/common | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/config/debian/common b/config/debian/common
index 66a5f29..d16d285 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
--
1.7.2.5
Reply to: