]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/dinstall.functions
No longer update a tracefile hourly. Instead update our tracefile the second before...
[dak.git] / config / debian / dinstall.functions
index 8f2dd81d0d783ef4aecb3517327dd103b16dd65e..463dec3799a5d227692d43bf3ee9c3f8622d4137 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode:sh -*-
 # Timestamp. Used for dinstall stat graphs
 function ts() {
         echo "Archive maintenance timestamp ($1): $(date +%H:%M:%S)"
@@ -72,7 +73,7 @@ function updates() {
 # Process (oldstable)-proposed-updates "NEW" queue
 function punew_do() {
     date -u -R >> REPORT
-    dak process-policy $1 | tee >> REPORT | mail -e -s "NEW changes in $1" debian-release@lists.debian.org
+    dak process-policy $1 | tee -a REPORT | mail -e -s "NEW changes in $1" debian-release@lists.debian.org
     echo >> REPORT
 }
 function punew() {
@@ -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}/. .
 }