Switching default of LH_APT from aptitude to apt for >= lenny.

Apt in lenny also supports tracking of 'orphaned' packages. If aptitude is
installed, apt can't be removed, so by switching to apt making the default
images a tiny bit smaller. And, aptitude got mainly default because of the
sarge->etch update recommendation.
This commit is contained in:
Daniel Baumann 2008-03-21 22:51:15 +01:00
parent fb89c5ada9
commit 92edfe399b
1 changed files with 6 additions and 1 deletions

View File

@ -34,7 +34,12 @@ Set_defaults ()
fi
# Setting package manager
LH_APT="${LH_APT:-aptitude}"
if [ "${LH_DISTRIBUTION}" = "etch" ]
then
LH_APT="${LH_APT:-aptitude}"
else
LH_APT="${LH_APT:-apt}"
fi
# Setting apt ftp proxy
if [ -z "${LH_APT_FTP_PROXY}" ] && [ -n "${ftp_proxy}" ]