From fcbe998101a0623c2ad7e29000c7d783e24d6620 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Fri, 21 Mar 2008 22:51:15 +0100
Subject: 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.
---
 functions/defaults.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/functions/defaults.sh b/functions/defaults.sh
index ddaf9a7..70aa6f2 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}" ]
-- 
cgit v1.0