[dak/master] No longer update a tracefile hourly. Instead update our tracefile the second before we create the mirror hardlinks
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
config/debian/cron.hourly | 3 ---
config/debian/dinstall.functions | 4 ++++
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly
index 6d0efb2..79fafd4 100755
--- a/config/debian/cron.hourly
+++ b/config/debian/cron.hourly
@@ -7,9 +7,6 @@ set -u
export SCRIPTVARS=/srv/ftp.debian.org/dak/config/debian/vars
. $SCRIPTVARS
-date -u > $ftpdir/project/trace/ftp-master.debian.org
-echo "Using dak v1" >> $ftpdir/project/trace/ftp-master.debian.org
-echo "Running on host: $(hostname -f)" >> $ftpdir/project/trace/ftp-master.debian.org
dak import-users-from-passwd
dak queue-report -n > $webdir/new.html
# We used to have accepted in here, but it doesn't exist in that form any more
diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index 751f317..463dec3 100644
--- a/config/debian/dinstall.functions
+++ b/config/debian/dinstall.functions
@@ -1,3 +1,4 @@
+# -*- mode:sh -*-
# Timestamp. Used for dinstall stat graphs
function ts() {
echo "Archive maintenance timestamp ($1): $(date +%H:%M:%S)"
@@ -389,6 +390,9 @@ function mkchecksums() {
function mirror() {
log "Regenerating \"public\" mirror/ hardlink fun"
+ date -u > ${ftpdir}/project/trace/ftp-master.debian.org
+ echo "Using dak v1" >> ${ftpdir}/project/trace/ftp-master.debian.org
+ echo "Running on host: $(hostname -f)" >> ${ftpdir}/project/trace/ftp-master.debian.org
cd ${mirrordir}
rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
}
--
1.6.5
Reply to: