diff options
author | Chris Lamb <chris@chris-lamb.co.uk> | 2008-04-16 03:42:28 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:32 +0100 |
commit | 08a0bc7155ef9d3c0c4e424fc269d5ed1d376a06 (patch) | |
tree | 494028d037196ebb6535c19d1bf7e657e2f55eec /functions | |
parent | 0e8c38206d4928d774867831c55cd80a17b638a3 (diff) | |
download | vyos-live-build-08a0bc7155ef9d3c0c4e424fc269d5ed1d376a06.tar.gz vyos-live-build-08a0bc7155ef9d3c0c4e424fc269d5ed1d376a06.zip |
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.
Diffstat (limited to 'functions')
-rwxr-xr-x | functions/packages.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/packages.sh b/functions/packages.sh index a98bdcc91..54b7aba99 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 |