[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] 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.
---
 config/debian-security/cron.unchecked |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/config/debian-security/cron.unchecked b/config/debian-security/cron.unchecked
index 8685f34..bbb9bdf 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
-- 
1.7.2.5


Reply to: