From ee288c928ed76f5f3e1bdfaa6027ef3593b9f14d Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Fri, 27 May 2016 12:03:37 +0200 Subject: [PATCH] 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 --- config/debian/common | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } -- 2.39.5