From 263a24807c967cc2c8996679e9593dbc46abe937 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 4 Nov 2012 18:12:25 +0100 Subject: [PATCH] config/debian-security/cron.unchecked: export policy queues in old format --- config/debian-security/cron.unchecked | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/debian-security/cron.unchecked b/config/debian-security/cron.unchecked index bd750d4a..f55315c5 100755 --- a/config/debian-security/cron.unchecked +++ b/config/debian-security/cron.unchecked @@ -67,6 +67,16 @@ if [ "${doanything}" = "false" ] && [ "${dopolicy}" = "false" ]; then exit 0 fi +# export policy queues +for queue in embargoed; do + pushd ${queuedir}/${queue} + rm -rf export.new + dak export -q ${queue} -d export.new --all + rsync -a --delete export.new/. export/. + rm -rf export.new + popd +done + # manage build queues dak manage-build-queues -a dak generate-packages-sources2 -a build-queues @@ -94,7 +104,9 @@ for suite in stable testing; do mv ${suite}.Release ${suite}.new/Release mv ${suite}.Release.gpg ${suite}.new/Release.gpg - mv ${suite} ${suite}.old + if [ -d ${suite} ]; then + mv ${suite} ${suite}.old + fi mv ${suite}.new ${suite} rm -rf ${suite}.old done -- 2.39.5