From: Ansgar Burchardt Date: Sun, 4 Nov 2012 18:56:35 +0000 (+0100) Subject: Make sure *.new directories do exist. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5329fa15c69b2c31ad98db1989ddfa8c4915a199;p=dak Make sure *.new directories do exist. The directories will not be created by dak export / dak export-suite if they have no files to put there. --- diff --git a/config/debian-security/cron.unchecked b/config/debian-security/cron.unchecked index bbb9bdf7..58029f41 100755 --- a/config/debian-security/cron.unchecked +++ b/config/debian-security/cron.unchecked @@ -70,6 +70,7 @@ find ${queuedir}/accepted -type f -exec mv -t /srv/queued/ftpmaster '{}' + for queue in embargoed; do pushd ${queuedir}/${queue} rm -rf export.new + mkdir export.new dak export -q ${queue} -d export.new --all rsync -a --delete export.new/. export/. rm -rf export.new @@ -91,6 +92,7 @@ dak generate-releases -a build-queues >/dev/null for suite in stable testing; do overridecodename=$(dak admin suite show ${suite} | awk '$1 == "OverrideCodename:" { print $2 }') rm -rf ${incoming}/${suite}.new + mkdir ${incoming}/${suite}.new dak export-suite -s buildd-${suite} -d ${incoming}/${suite}.new cd ${incoming}/${suite}.new