From b5a891df1427c4247a9ce6cc86d5f4ebd4f5f0e8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 10 Aug 2009 00:50:56 +0200 Subject: Including archive trace into .disk meta information. --- helpers/lh_source_disk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'helpers/lh_source_disk') diff --git a/helpers/lh_source_disk b/helpers/lh_source_disk index 105fd6359..a69be6746 100755 --- a/helpers/lh_source_disk +++ b/helpers/lh_source_disk @@ -52,22 +52,32 @@ eval VERSION="$`echo RELEASE_${LH_DISTRIBUTION}`" case "${LH_MODE}" in debian) STRING="Official Snapshot ${ARCHITECTURE}" + TRACE="project/trace/ftp-master.debian.org" ;; debian-release) STRING="Official ${ARCHITECTURE}" + TRACE="project/trace/ftp-master.debian.org" ;; ubuntu) TITLE="Ubuntu GNU/Linux" STRING="Build ${ARCHITECTURE}" + TRACE="" ;; *) STRING="Snapshot ${ARCHITECTURE}" + TRACE="" ;; esac +if [ -n "${TRACE}" ] +then + echo "$(wget -q ${LH_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + > source/.disk/archive_trace +fi + case "${LH_DEBIAN_INSTALLER}" in cdrom) echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Source $(date +%Y%m%d-%H:%M)" > source/.disk/info -- cgit v1.2.3