[SCM] debian-live/live-helper branch, master, updated. 1.0_a43-1-15-gfe152b4

Chris Lamb chris at chris-lamb.co.uk
Wed Apr 16 06:53:41 UTC 2008


The following commit has been merged in the master branch:
commit b16cedc2546df71ac0b055a02642bbbb5797bb2b
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date:   Wed Apr 16 03:42:28 2008 +0100

    Don't install "Recommends:" when installing local tools
    
    This patch disables the installation of "Recommends:" packages whilst
    obtaining build utilities such as 'syslinux'.
    
    It has three benefits:
    
     * Doesn't waste time installing useless packages whilst building.
    
     * Keeps the "binary chroot" clean - packages leak into the the live system
       on a rebuild.
    
     * Makes the behaviour of Install_Package more predictable and independent
       of the chroot's APT configuration.
    
    Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>

diff --git a/functions/packages.sh b/functions/packages.sh
index a98bdcc..54b7aba 100755
--- a/functions/packages.sh
+++ b/functions/packages.sh
@@ -34,11 +34,11 @@ Install_package ()
 	then
 		case "${LH_APT}" in
 			apt|apt-get)
-				Chroot "apt-get install --yes ${PACKAGES}"
+				Chroot "apt-get install --no-install-recommends --yes ${PACKAGES}"
 				;;
 
 			aptitude)
-				Chroot "aptitude install --assume-yes ${PACKAGES}"
+				Chroot "aptitude install --without-recommends --assume-yes ${PACKAGES}"
 				;;
 		esac
 	fi

-- 
debian-live/live-helper



More information about the debian-live-changes mailing list