From ba83790488c83520e656a71003147bda45a8c6f5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 10 Nov 2007 18:39:49 +0100 Subject: Adding option to allow building in fakeroot/fakechroot environment, thanks to An-Cheng Huang . --- helpers/lh_bootstrap_debootstrap | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'helpers/lh_bootstrap_debootstrap') diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap index 3ae607570..838a3de8e 100755 --- a/helpers/lh_bootstrap_debootstrap +++ b/helpers/lh_bootstrap_debootstrap @@ -82,15 +82,20 @@ then DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --exclude=${LH_BOOTSTRAP_EXCLUDE}" fi -if [ -z "${LH_BOOTSTRAP_FLAVOUR}" ] +if [ "${LH_USE_FAKEROOT}" != "enabled" ] then - case "${LH_PACKAGES_LISTS}" in - minimal|mini) - DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=buildd" - ;; - esac + if [ -z "${LH_BOOTSTRAP_FLAVOUR}" ] + then + case "${LH_PACKAGES_LISTS}" in + minimal|mini) + DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=buildd" + ;; + esac + else + DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=${LH_BOOTSTRAP_FLAVOUR}" + fi else - DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=${LH_BOOTSTRAP_FLAVOUR}" + DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=fakechroot" fi if [ "${LH_VERBOSE}" = "true" ] -- cgit v1.2.3