summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-03-21 22:51:15 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:01:53 +0100
commitfcbe998101a0623c2ad7e29000c7d783e24d6620 (patch)
tree7ed34bd9e5214560c84922e6a6948fd2a7e00002 /functions/defaults.sh
parentb486973db72a7389e24304edb94262efb908ff21 (diff)
downloadvyos-live-build-fcbe998101a0623c2ad7e29000c7d783e24d6620.tar.gz
vyos-live-build-fcbe998101a0623c2ad7e29000c7d783e24d6620.zip
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.
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index ddaf9a7c9..70aa6f293 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -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}" ]