+2008-05-03 Joerg Jaspert <joerg@debian.org>
+
+ * config/debian/cron.daily: Rename to
+ * config/debian/cron.dinstall: this, as its not really something run
+ daily for some time now. And while dinstall is an OLD name, its
+ recognized pretty well within Debian
+ Also add some more timing information
+
2008-05-03 Thomas Viehmann <tv@beamnet.de>
* dak/process_unchecked.py (check_hashes): Reject on error while
# Start logging
NOW=`date "+%Y.%m.%d-%H:%M:%S"`
-LOGFILE="$logdir/daily_${NOW}.log"
+LOGFILE="$logdir/dinstall_${NOW}.log"
exec > "$LOGFILE" 2>&1
echo Archive maintenance started at $(date +%X)
# Update fingerprints
dak import-keyring -L /srv/keyring.debian.org/keyrings/debian-keyring.gpg
+TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
+
# Generate override files
echo "Writing overrides into text files"
cd $overridedir
dak make-overrides
+TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
+
# FIXME
rm -f override.sid.all3
for i in main contrib non-free main.debian-installer; do cat override.sid.$i >> override.sid.all3; done
cd $configdir
apt-ftparchive generate apt.conf
# Generate *.diff/ incremental updates
+
+TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
+
echo "Generating pdiff files"
dak generate-index-diffs
+
+TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
+
# Generate Release files
echo "Generating Release files"
dak generate-releases
./mkchecksums
#
rm -f $NOTICE
+
+TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
+
echo "Trigger daily wanna-build run"
ssh buildd@buildd /org/wanna-build/trigger.daily
dak cruft-report -s experimental >> $webdir/cruft-report-daily.txt
cat $webdir/cruft-report-daily.txt | mail -e -s "Debian archive cruft report for $(date +%D)" ftpmaster@ftp-master.debian.org
+TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
+
echo "Updating DM html page"
$scriptsdir/dm-monitor >$webdir/dm-uploaders.html
done
)
+TS=$(($TS+1)); echo Archive maintenance timestamp $TS: $(date +%X)
+
echo "Finally, all is done, sending mail and compressing logfile"
exec > /dev/null 2>&1
-cat "$LOGFILE" | mail -s "Log for cron.daily run of $(date +%Y.%m.%d)" cron@ftp-master.debian.org
+cat "$LOGFILE" | mail -s "Log for dinstall run of $(date +%Y.%m.%d' at '%H:%M)" cron@ftp-master.debian.org
bzip2 -9 "$LOGFILE"
################################################################################