[SCM] Debian Live build scripts branch, master, updated. 1.0.3-2-4-g4227615

Daniel Baumann daniel at debian.org
Fri Feb 13 09:22:52 UTC 2009


The following commit has been merged in the master branch:
commit 369946e18490951c8102bf90a9f341b5aa6fc91e
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Feb 13 10:17:29 2009 +0100

    Adding new setting for binary indices: If set to none, no indices are included at all.

diff --git a/functions/defaults.sh b/functions/defaults.sh
index dc2c5a1..c01e7ba 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -557,7 +557,12 @@ Set_defaults ()
 	LH_BINARY_IMAGES="${LH_BINARY_IMAGES:-iso}"
 
 	# Setting apt indices
-	LH_BINARY_INDICES="${LH_BINARY_INDICES:-enabled}"
+	if echo ${LH_PACKAGES_LISTS} | grep -qs -E "(stripped|minimal)\b"
+	then
+		LH_BINARY_INDICES="${LH_BINARY_INDICES:-none}"
+	else
+		LH_BINARY_INDICES="${LH_BINARY_INDICES:-enabled}"
+	fi
 
 	# Setting bootloader
 	if [ -z "${LH_BOOTLOADER}" ]
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index 51716d1..d5e640c 100755
--- a/helpers/lh_chroot_sources
+++ b/helpers/lh_chroot_sources
@@ -403,16 +403,12 @@ case "${1}" in
 		rm -rf chroot/var/cache/apt
 		mkdir -p chroot/var/cache/apt/archives/partial
 
-		for LIST in ${LH_PACKAGES_LISTS}
-		do
-			case "${LIST}" in
-				stripped|minimal)
-					# Cleaning apt package lists
-					rm -rf chroot/var/lib/apt/lists
-					mkdir -p chroot/var/lib/apt/lists/partial
-					;;
-			esac
-		done
+		# Cleaning apt package lists
+		if [ "${LH_BINARY_INDICES}" = "none" ]
+		then
+			rm -rf chroot/var/lib/apt/lists
+			mkdir -p chroot/var/lib/apt/lists/partial
+		fi
 
 		# Remove local package repository
 		rm -rf chroot/root/local-packages
diff --git a/helpers/lh_config b/helpers/lh_config
index 4b41186..6e6a330 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -38,7 +38,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\
 \t    [-a|--architecture ARCHITECTURE]\n\
 \t    [-b|--binary-images iso|net|tar|usb-hdd]\n\
 \t    [--binary-filesystem fat16|fat32]\n\
-\t    [--binary-indices enabled|disabled]\n\
+\t    [--binary-indices enabled|disabled|none]\n\
 \t    [--bootappend-install PARAMETER|\"PARAMETERS\"]\n\
 \t    [--bootappend-live PARAMETER|\"PARAMETERS\"]\n\
 \t    [--bootloader grub|syslinux|yaboot]\n\
diff --git a/manpages/lh_config.en.1 b/manpages/lh_config.en.1
index 90f37b3..63c1ab9 100644
--- a/manpages/lh_config.en.1
+++ b/manpages/lh_config.en.1
@@ -30,7 +30,7 @@ lh_config \- create configuration for live\-helper
 .br
 	[\fB\-\-binary\-filesystem\fR fat16|fat32|ext2]
 .br
-	[\fB\-\-binary\-indices\fR enabled|disabled]
+	[\fB\-\-binary\-indices\fR enabled|disabled|none]
 .br
 	[\fB\-\-bootappend\-install\fR \fIPARAMETER\fR|\fI"PARAMETERS"\fR]
 .br
@@ -226,8 +226,8 @@ defines the architecture of the to be build image. By default, this is set to th
 defines the image type to build. By default this is set to iso to build CD/DVD images.
 .IP "\fB\-\-binary\-filesystem\fR fat16|fat32|ext2" 4
 defines the filesystem to be used in the image type. This only has an effect if the selected binary image type does allow to choose a filesystem. For example, when selection iso the resulting CD/DVD has always the filesystem ISO9660. When building usb-hdd images for usb sticks, this is active. Note that it defaults to fat16 on all architectures except sparc where it defaults to ext2. Also note that if you choose fat16 and your resulting binary image gets bigger than 2GB, the binary filesystem automatically gets switched to fat32.
-.IP "\fB\-\-binary\-indices\fR enabled|disabled" 4
-defines if the resulting images should have binary indices or not and defaults to enabled.
+.IP "\fB\-\-binary\-indices\fR enabled|disabled|none" 4
+defines if the resulting images should have binary indices or not and defaults to enabled. If set to none, no indices are included at all.
 .IP "\fB\-\-bootappend\-install\fR \fIPARAMETER\fR|\fI""PARAMETERS""\fR" 4
 sets boot parameters specific to debian-installer, if included.
 .IP "\fB\-\-bootappend\-live\fR \fIPARAMETER\fR|\fI""PARAMETERS""\fR" 4

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list