[SCM] live-build branch, debian-next, updated. debian/3.0_a11-1-22-gd79b22f

Daniel Baumann daniel at debian.org
Mon Feb 14 15:04:19 UTC 2011


The following commit has been merged in the debian-next branch:
commit 2319304cfdce728e4cb305b16856ac3d60ffba5c
Author: Daniel Baumann <daniel at debian.org>
Date:   Mon Feb 14 15:49:18 2011 +0100

    Adding multi-repository support for debian-installer udebs at build-time.

diff --git a/scripts/build/lb_binary_debian-installer b/scripts/build/lb_binary_debian-installer
index d2f966e..914f9a0 100755
--- a/scripts/build/lb_binary_debian-installer
+++ b/scripts/build/lb_binary_debian-installer
@@ -262,7 +262,12 @@ then
 			;;
 	esac
 else
-	URL="${LB_PARENT_MIRROR_DEBIAN_INSTALLER}/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/installer-${LB_ARCHITECTURES}/current/images/"
+	if [ "${LB_DISTRIBUTION}" = "true" ]
+	then
+		URL="${LB_MIRROR_DEBIAN_INSTALLER}/dists/${LB_DEBIAN_INSTALLER_DISTRIBUTION}/main/installer-${LB_ARCHITECTURES}/current/images/"
+	else
+		URL="${LB_PARENT_MIRROR_DEBIAN_INSTALLER}/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/installer-${LB_ARCHITECTURES}/current/images/"
+	fi
 fi
 
 mkdir -p "${DESTDIR_DI}"
@@ -486,6 +491,7 @@ then
 	# Fetching release
 	Download_file binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/binary-${LB_ARCHITECTURES}/Release "${LB_PARENT_MIRROR_CHROOT}"/dists/"${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"/main/binary-"${LB_ARCHITECTURES}"/Release
 
+	# Udeb handling
 	mkdir binary.udeb
 	cd binary.udeb
 
@@ -493,9 +499,20 @@ then
 	Download_file Packages.gz "${LB_PARENT_MIRROR_CHROOT}"/dists/"${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"/main/debian-installer/binary-"${LB_ARCHITECTURES}"/Packages.gz
 	gunzip -c Packages.gz > Packages
 
+	if [ "${LB_DERIVATIVE}" = "true" ]
+	then
+		Download_file Packages.derivative.gz "${LB_MIRROR_CHROOT}"/dists/"${LB_DEBIAN_INSTALLER_DISTRIBUTION}"/main/debian-installer/binary-"${LB_ARCHITECTURES}"/Packages.gz
+		gunzip -c Packages.derivative.gz > Packages.derivative
+	fi
+
 	# Sorting udebs
 	UDEBS="$(awk '/Filename: / { print $2 }' Packages)"
 
+	if [ "${LB_DERIVATIVE}" = true ]
+	then
+		UDEBS="${UDEBS} $(awk '/Filename: / { print $2 }' Packages.derivative)"
+	fi
+
 	# Downloading udebs
 	for UDEB in ${UDEBS}
 	do
@@ -505,7 +522,7 @@ then
 			cp ../cache/packages_debian-installer.udeb/"$(basename ${UDEB})" ./
 		else
 			# Downloading udebs
-			wget ${WGET_OPTIONS} "${LB_PARENT_MIRROR_CHROOT}"/${UDEB}
+			wget ${WGET_OPTIONS} "${LB_MIRROR_CHROOT}"/${UDEB} || wget ${WGET_OPTIONS} "${LB_PARENT_MIRROR_CHROOT}"/${UDEB}
 		fi
 	done
 

-- 
live-build



More information about the debian-live-changes mailing list