From c8bb19dd48f0047de85cda401a7ba5e037e6db4a Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Tue, 30 Oct 2007 06:35:35 +0100
Subject: Respecting LH_BOOTSTRAP_FLAVOUR (Closes: #448034).
---
helpers/lh_bootstrap_cdebootstrap | 21 +++++++++++++--------
helpers/lh_bootstrap_debootstrap | 11 +++++++++++
2 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/helpers/lh_bootstrap_cdebootstrap b/helpers/lh_bootstrap_cdebootstrap
index 616e195..0045b21 100755
--- a/helpers/lh_bootstrap_cdebootstrap
+++ b/helpers/lh_bootstrap_cdebootstrap
@@ -87,14 +87,19 @@ then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --keyring=${LH_BOOTSTRAP_KEYRING}"
fi
-case "${LH_PACKAGES_LISTS}" in
- minimal|mini)
- CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
- ;;
- *)
- CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard"
- ;;
-esac
+if [ -z "${LH_BOOTSTRAP_FLAVOUR}" ]
+then
+ case "${LH_PACKAGES_LISTS}" in
+ minimal|mini)
+ CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
+ ;;
+ *)
+ CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard"
+ ;;
+ esac
+else
+ CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=${LH_BOOTSTRAP_FLAVOUR}"
+fi
if [ "${LH_DEBUG}" = "enabled" ]
then
diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap
index c25b379..101ab95 100755
--- a/helpers/lh_bootstrap_debootstrap
+++ b/helpers/lh_bootstrap_debootstrap
@@ -82,6 +82,17 @@ then
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --exclude=${LH_BOOTSTRAP_EXCLUDE}"
fi
+if [ -z "${LH_BOOTSTRAP_FLAVOUR}" ]
+then
+ case "${LH_PACKAGES_LISTS}" in
+ minimal|mini)
+ DEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --variant=buildd"
+ ;;
+ esac
+else
+ DEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --variant=${LH_BOOTSTRAP_FLAVOUR}"
+fi
+
if [ "${LH_VERBOSE}" = "true" ]
then
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --verbose"
--
cgit v1.0