From: Ansgar Burchardt Date: Sun, 4 Nov 2012 18:38:00 +0000 (+0100) Subject: Always regenerate policy queue exports. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=990dfd9e13800dadeeaa48c7f8e90082e740abe8;p=dak.git Always regenerate policy queue exports. Otherwise outdated symlinks will be kept around for a while after dak new-security-install was run until cron.unchecked does some real work again. --- diff --git a/config/debian-security/cron.unchecked b/config/debian-security/cron.unchecked index 8685f34d..bbb9bdf7 100755 --- a/config/debian-security/cron.unchecked +++ b/config/debian-security/cron.unchecked @@ -66,11 +66,6 @@ fi cd ${base} find ${queuedir}/accepted -type f -exec mv -t /srv/queued/ftpmaster '{}' + -if [ "${doanything}" = "false" ] && [ "${dopolicy}" = "false" ]; then - echo "$timestamp": Nothing to do >> $report - exit 0 -fi - # export policy queues for queue in embargoed; do pushd ${queuedir}/${queue} @@ -81,6 +76,11 @@ for queue in embargoed; do popd done +if [ "${doanything}" = "false" ] && [ "${dopolicy}" = "false" ]; then + echo "$timestamp": Nothing to do >> $report + exit 0 +fi + # manage build queues dak manage-build-queues -a dak generate-packages-sources2 -a build-queues