Remove automatically installed packages when installing helpers.

This was causing a bug where "grub-common"--a dependency of grub--was remaining
in the binary build chroot after the grub tool was removed. This then resulted
in it not being included in the d-i debs in lh_binary_debian-installer.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
Chris Lamb 2008-08-17 05:58:59 +01:00
parent 8cbf66d930
commit 4a1a00e1d4

View File

@ -51,6 +51,11 @@ Remove_package ()
case "${LH_APT}" in
apt|apt-get)
Chroot "apt-get remove --purge --yes ${PACKAGES}"
if [ "${LH_DISTRIBUTION}" != "etch" ]
then
Chroot "apt-get autoremove --purge --yes"
fi
;;
aptitude)