]> git.decadent.org.uk Git - dak.git/blob - config/backports/cron.hourly
dak/examine_package.py: remove confusing parentheses
[dak.git] / config / backports / cron.hourly
1 #! /bin/bash
2 #
3 # Executed hourly via cron, out of dak's crontab.
4
5 set -e
6 set -o pipefail
7 set -u
8
9 export SCRIPTVARS=/srv/backports-master.debian.org/dak/config/backports/vars
10 . $SCRIPTVARS
11
12 dak import-users-from-passwd
13 dak queue-report -n > $webdir/new.html
14 dak queue-report -8 -d new,byhand,proposedupdates,oldproposedupdates -r $webdir/stat
15 #dak show-deferred -r $webdir/stat > ${webdir}/deferred.html
16 dak graph -n new,byhand,proposedupdates,oldproposedupdates,deferred -r $webdir/stat -i $webdir/stat -x $scriptsdir/rrd-release-freeze-dates
17 dak show-new > /dev/null
18
19 # cd $webdir
20 # cat removals-20*.txt > removals-full.txt
21 # cat removals.txt >> removals-full.txt
22 # cat removals-20*.822 > removals-full.822
23 # cat removals.822 >> removals-full.822
24
25 #$base/dak/tools/queue_rss.py -q $queuedir/new -o $webdir/rss/ -d $base/misc -l $base/log/
26 $base/dak/tools/removals.pl $configdir/removalsrss.rc > $webdir/removals.rss
27
28 #$scriptsdir/generate-di
29
30 # do the buildd key updates
31 BUILDDFUN=$(mktemp -p "${TMPDIR}" BUILDDFUN.XXXXXX)
32 exec >> "${BUILDDFUN}" 2>&1
33 #${scriptsdir}/buildd-remove-keys
34 #${scriptsdir}/buildd-add-keys
35 #${scriptsdir}/buildd-prepare-dir
36 for keyring in $(dak admin k list-binary); do
37     dak import-keyring --generate-users "%s" ${keyring}
38 done
39 exec >>/dev/null 2>&1
40
41 DATE=$(date -Is)
42 cat "${BUILDDFUN}" | mail -a "X-Debian: DAK" -e -s "[$(hostname -s)] Buildd key changes ${DATE}" buildd-keys@ftp-master.debian.org -- -F "Debian FTP Masters" -f ftpmaster@ftp-master.debian.org
43
44 rm -f "${BUILDDFUN}"