]> git.decadent.org.uk Git - dak.git/commitdiff
Always regenerate policy queue exports.
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 4 Nov 2012 18:38:00 +0000 (19:38 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 4 Nov 2012 18:38:00 +0000 (19:38 +0100)
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.

config/debian-security/cron.unchecked

index 8685f34deb3c0cc3c272c085e6c3a13bfb69b55f..bbb9bdf73f5338b699f930e7ff0a66a568ea6325 100755 (executable)
@@ -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