[dak/master] debian/mirror: Use same date for all trace files
---
config/debian/dinstall.functions | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index 490e267..62cf6f3 100755
--- a/config/debian/dinstall.functions
+++ b/config/debian/dinstall.functions
@@ -458,6 +458,8 @@ function mirror() {
local archiveroot targetpath TRACEFILE
CREATOR_VERSION="g$(git rev-parse --short HEAD)"
+ DATE=$(LC_ALL=POSIX LANG=POSIX date -u)
+ RFC822DATE=$(LC_ALL=POSIX LANG=POSIX date -u -R)
for archive in "${public_archives[@]}"; do
archiveroot="$(get_archiveroot "${archive}")"
@@ -484,15 +486,14 @@ function mirror() {
else
SERIAL="${FILESOAPLUS1}"
fi
- RFC822DATE=$(LC_ALL=POSIX LANG=POSIX date -u -R)
- date -u > ${TRACEFILE}
{
+ echo "${DATE}"
echo "Creator: dak ${CREATOR_VERSION}"
echo "Running on host: $(hostname -f)"
echo "Archive serial: ${SERIAL}"
echo "Date: ${RFC822DATE}"
echo "Architectures: ${archs%* } source"
- } >> ${TRACEFILE}
+ } > ${TRACEFILE}
# Now make it accessible via one name, no matter on which host we run
cd ${targetpath}/project/trace/
ln -sf ftp-master.debian.org master
--
2.1.4
Reply to: