[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Also create Date: line in archives tracefiles



---
 config/debian-security/make-mirror.sh | 2 ++
 config/debian/dinstall.functions      | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/config/debian-security/make-mirror.sh b/config/debian-security/make-mirror.sh
index 8293d71..15f32a8 100755
--- a/config/debian-security/make-mirror.sh
+++ b/config/debian-security/make-mirror.sh
@@ -16,9 +16,11 @@ else
     SERIAL="${FILESOAPLUS1}"
 fi
 date -u > ${TRACEFILE}
+rfc822date=$(LC_ALL=POSIX LANG=POSIX date -u -R)
 echo "Using dak v1" >> ${TRACEFILE}
 echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
 echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
+echo "Date: ${rfc822date}"
 cd /srv/security-master.debian.org/ftp/project/trace/
 ln -sf security-master.debian.org master
 cd /srv/security.debian.org/archive/debian-security/
diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index ab392e7..9e6b63f 100644
--- a/config/debian/dinstall.functions
+++ b/config/debian/dinstall.functions
@@ -477,10 +477,12 @@ function mirror() {
         else
             SERIAL="${FILESOAPLUS1}"
         fi
+        RFC822DATE=$(LC_ALL=POSIX LANG=POSIX date -u -R)
         date -u > ${TRACEFILE}
         echo "Using dak v1" >> ${TRACEFILE}
         echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
         echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
+        echo "Date: ${RFC822DATE}" >> ${TRACEFILE}
         # Now make it accessible via one name, no matter on which host we run
         cd ${archiveroot}/project/trace/
         ln -sf ftp-master.debian.org master
-- 
2.1.4


Reply to: