]> git.decadent.org.uk Git - dak.git/blob - config/debian-security/cron.unchecked
Fixed 822 queue report to actually print out the timestamp sanely
[dak.git] / config / debian-security / cron.unchecked
1 #! /bin/sh
2
3 set -e
4 export SCRIPTVARS=/org/security.debian.org/dak/config/debian-security/vars
5 . $SCRIPTVARS
6
7 report=$queuedir/REPORT
8 reportdis=$queuedir/REPORT.disembargo
9 timestamp=$(date "+%Y-%m-%d %H:%M")
10 doanything=false
11
12 cd $unchecked
13 changes=$(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs)
14 if [ -n "$changes" ]; then
15   doanything=true
16   echo "$timestamp": "$changes"  >> $report
17   dak process-unchecked -a $changes >> $report
18   echo "--" >> $report
19 fi
20
21 cd $disembargo
22 changes=$(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs)
23
24 if [ -n "$changes" ]; then
25   doanything=true
26   echo "$timestamp": "$changes"  >> $reportdis
27   dak process-unchecked -a $changes >> $reportdis
28   echo "--" >> $reportdis
29 fi
30
31 if ! $doanything; then
32   echo "$timestamp": Nothing to do >> $report
33   exit 0
34 fi
35
36 sh $masterdir/cron.buildd