[SCM] Debian Live build scripts branch, master, updated. 1.0.1-1-11-g7098566

Chris Lamb lamby at debian.org
Sat Sep 27 21:44:34 UTC 2008


The following commit has been merged in the master branch:
commit 70985669d76e8fbf536e151b687db2e43ebbb4bb
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Sep 27 22:41:42 2008 +0100

    Don't build up source package list inside chroot.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>

diff --git a/helpers/lh_clean b/helpers/lh_clean
index aafef4f..23c4967 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -111,6 +111,7 @@ do
 			rm -f source*.tar
 			rm -f source*.tar.gz
 			rm -f source.list
+			rm -f source-selection.txt
 
 			rm -rf source
 
diff --git a/helpers/lh_source_debian b/helpers/lh_source_debian
index 247543e..fdcbb2d 100755
--- a/helpers/lh_source_debian
+++ b/helpers/lh_source_debian
@@ -54,9 +54,9 @@ then
 fi
 
 # Download sources
-Chroot "dpkg --get-selections" | awk '{ print $1 }' > chroot/root/dpkg-selection.txt
+Chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.txt
 
-cat >> chroot/root/dpkg-selection.txt << EOF
+cat >> source-selection.txt << EOF
 ${LH_BOOTLOADER}
 live-helper
 ${LH_INITRAMFS}
@@ -71,7 +71,7 @@ EOF
 case "${LH_ARCHITECTURE}" in
 	amd64|i386)
 
-cat >> chroot/root/dpkg-selection.txt << EOF
+cat >> source-selection.txt << EOF
 mtools
 syslinux
 grub
@@ -79,22 +79,22 @@ EOF
 
 		if [ "${LH_MEMTEST}" != "disabled" ] && [ "${LH_MEMTEST}" != "none" ]
 		then
-			echo "${LH_MEMTEST}" >> chroot/root/dpkg-selection.txt
+			echo "${LH_MEMTEST}" >> source-selection.txt
 		fi
 		;;
 
 	powerpc)
-		echo "yaboot" >> chroot/root/dpkg-selection.txt
+		echo "yaboot" >> source-selection.txt
 		;;
 
 	silo)
-		echo "silo" >> chroot/root/dpkg-selection.txt
+		echo "silo" >> source-selection.txt
 		;;
 esac
 
 MISSING=""
 
-grep . chroot/root/dpkg-selection.txt | \
+grep . source-selection.txt | \
 while read PACKAGE
 do
 	if ! Chroot "apt-get ${APT_OPTIONS} --download-only source ${PACKAGE}"
@@ -117,7 +117,7 @@ EOF
 	done
 fi
 
-rm -f chroot/root/dpkg-selection.txt
+rm -f source-selection.txt
 
 # Sort sources
 for DSC in chroot/*.dsc

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list