[SCM] live-build branch, debian, updated. debian/2.0_a28-1-12-g43666a8

Daniel Baumann daniel at debian.org
Thu Sep 16 19:25:29 UTC 2010


The following commit has been merged in the debian branch:
commit 377a458b92d5ec0364f53590d2aad6a6dad7175b
Author: Daniel Baumann <daniel at debian.org>
Date:   Wed Sep 15 13:03:04 2010 +0200

    Adding somewhat prettier header in /etc/apt/sources.list.

diff --git a/scripts/build/lb_chroot_sources b/scripts/build/lb_chroot_sources
index cddbd8e..6c95967 100755
--- a/scripts/build/lb_chroot_sources
+++ b/scripts/build/lb_chroot_sources
@@ -46,7 +46,12 @@ case "${1}" in
 		Restore_cache cache/packages_chroot
 
 		# Configure custom sources.list
-		echo "deb ${LB_MIRROR_CHROOT} ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" > chroot/etc/apt/sources.list
+
+cat > chroot/etc/apt/sources.list << EOF
+# /etc/apt/sources.list
+
+deb ${LB_MIRROR_CHROOT} ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}
+EOF
 
 		if [ "${LB_SOURCE}" = "true" ]
 		then
@@ -439,7 +444,11 @@ case "${1}" in
 		rm -rf chroot/var/lib/apt/lists
 		mkdir -p chroot/var/lib/apt/lists/partial
 
-		echo "deb ${LB_MIRROR_BINARY} ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}" > chroot/etc/apt/sources.list
+cat > chroot/etc/apt/sources.lis << EOF
+# /etc/apt/sources.list
+
+deb ${LB_MIRROR_BINARY} ${LB_DISTRIBUTION} ${LB_ARCHIVE_AREAS}
+EOF
 
 		if [ "${LB_SOURCE}" = "true" ]
 		then

-- 
live-build



More information about the debian-live-changes mailing list