From: Ansgar Burchardt Date: Sun, 4 Nov 2012 16:52:49 +0000 (+0100) Subject: config/debian-security/cron.unchecked: just run process-policy to see if there were... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cff085636fc6e17475eb823eea2f9aa6679358e1;p=dak config/debian-security/cron.unchecked: just run process-policy to see if there were files to process --- diff --git a/config/debian-security/cron.unchecked b/config/debian-security/cron.unchecked index e234e33b..bd750d4a 100755 --- a/config/debian-security/cron.unchecked +++ b/config/debian-security/cron.unchecked @@ -37,13 +37,11 @@ fi trap cleanup EXIT for queue in embargoed; do - cd ${queuedir}/${queue}/COMMENTS - comments=$(find . -maxdepth 1 -mindepth 1 -type f '(' -name "ACCEPT.*.changes" -o -name "REJECT.*.changes" ')' | sed -e "s,./,," | xargs) - if [ -n "$comments" ]; then + echo "$timestamp: processing ${queue}" >> ${report} + dak process-policy ${queue} >> ${report} + accepted=$(find ${queuedir}/accepted -type f -name "*.changes") + if [ -n "${accepted}" ]; then dopolicy=true - echo "$timestamp": ${comments:-"Nothing to do for ${queue}"} >> $report - dak process-policy ${queue} >> ${report} - find /srv/security-master.debian.org/queue/accepted -type f -exec mv -t /srv/queued/ftpmaster '{}' + fi done @@ -103,6 +101,7 @@ done if [ "x${dopolicy}x" = "xtruex" ]; then # We had something approved from a policy queue, push out new archive + find /srv/security-master.debian.org/queue/accepted -type f -exec mv -t /srv/queued/ftpmaster '{}' + dak dominate #dak generate-filelist cd $configdir