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@chris-lamb.co.uk>
This commit is contained in:
parent
9e272993cc
commit
b16cedc254
|
@ -34,11 +34,11 @@ Install_package ()
|
||||||
then
|
then
|
||||||
case "${LH_APT}" in
|
case "${LH_APT}" in
|
||||||
apt|apt-get)
|
apt|apt-get)
|
||||||
Chroot "apt-get install --yes ${PACKAGES}"
|
Chroot "apt-get install --no-install-recommends --yes ${PACKAGES}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
aptitude)
|
aptitude)
|
||||||
Chroot "aptitude install --assume-yes ${PACKAGES}"
|
Chroot "aptitude install --without-recommends --assume-yes ${PACKAGES}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue