So that we don't get an empty or incomplete report while it
is being generated.
Signed-off-by: Emilio Pozuelo Monfort <pochu@debian.org>
dak queue-report -d backports-new,backports-policy | mail -a "X-Debian: DAK" -e -s "NEW and POLICY on $(date +%D)" -a "From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>" backports-team@debian.org
# and one on crufty packages
log "Sending information about crufty packages"
- dak cruft-report -R > $webdir/cruft-report-daily.txt
- dak cruft-report -R -s experimental >> $webdir/cruft-report-daily.txt
+ dak cruft-report -R > $webdir/cruft-report-daily.txt.new
+ dak cruft-report -R -s experimental >> $webdir/cruft-report-daily.txt.new
+ mv $webdir/cruft-report-daily.txt.new $webdir/cruft-report-daily.txt
mail -a "X-Debian: DAK" -e -s "Debian archive cruft report for $(date +%D)" -a "From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>" ftpmaster@ftp-master.debian.org < $webdir/cruft-report-daily.txt
}