From ebf1ea52381c1af715b8e77cf06d609a22bf4ce0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 14 Feb 2011 14:32:10 +0100 Subject: Adding mirror handling for derivatives. --- scripts/build/lb_source_disk | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'scripts/build/lb_source_disk') diff --git a/scripts/build/lb_source_disk b/scripts/build/lb_source_disk index e88a92b25..3d21223c6 100755 --- a/scripts/build/lb_source_disk +++ b/scripts/build/lb_source_disk @@ -74,8 +74,20 @@ esac if [ -n "${TRACE}" ] then - echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ - > source/.disk/archive_trace + case "${LB_DERIVATIVE}" in + true) + echo "$(echo ${LB_PARENT_MIRROR_BOOTSTRAP} | awk -F:// '{ print $2 }'): $(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + > source/.disk/archive_trace + + echo "$(echo ${LB_MIRROR_BOOTSTRAP} | awk -F:// '{ print $2 }'): $(wget -q ${LB_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + >> source/.disk/archive_trace + ;; + + false) + echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + > source/.disk/archive_trace + ;; + esac fi case "${LB_DEBIAN_INSTALLER}" in -- cgit v1.2.3