From 0c94983071ad4800961df4a1707add9f612faa5c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 7 Feb 2015 06:50:28 +0100 Subject: [PATCH] Using same logic to create the source/.disk/archive_trace for binary/.disk/archive_trace too (Closes: #774200). --- scripts/build/binary_disk | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/scripts/build/binary_disk b/scripts/build/binary_disk index c3ac058f3..5dce94123 100755 --- a/scripts/build/binary_disk +++ b/scripts/build/binary_disk @@ -81,8 +81,20 @@ esac if [ -n "${TRACE}" ] then - echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ - > binary/.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)" \ + > binary/.disk/archive_trace + + echo "$(echo ${LB_MIRROR_BOOTSTRAP} | awk -F:// '{ print $2 }'): $(wget -q ${LB_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + >> binary/.disk/archive_trace + ;; + + false) + echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + > binary/.disk/archive_trace + ;; + esac fi case "${LB_INITRAMFS}" in