From: Emilio Pozuelo Monfort Date: Fri, 27 May 2016 10:03:37 +0000 (+0200) Subject: Don't generate the cruft report in-place X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ee288c928ed76f5f3e1bdfaa6027ef3593b9f14d;p=dak.git Don't generate the cruft report in-place So that we don't get an empty or incomplete report while it is being generated. Signed-off-by: Emilio Pozuelo Monfort --- diff --git a/config/debian/common b/config/debian/common index 870f7131..a8f56dd0 100755 --- a/config/debian/common +++ b/config/debian/common @@ -223,8 +223,9 @@ function reports() { 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 " 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 < $webdir/cruft-report-daily.txt }