]> git.decadent.org.uk Git - dak.git/commitdiff
config/debian-security/cron.unchecked: export policy queues in old format
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 4 Nov 2012 17:12:25 +0000 (18:12 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 4 Nov 2012 17:16:16 +0000 (18:16 +0100)
config/debian-security/cron.unchecked

index bd750d4a022e1eca4df3d7765d1e04821428bc2d..f55315c5028de92ce927db75ed48e1afcba9b4cb 100755 (executable)
@@ -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