From 22c6dc6149967379dd7ab65f8ea59bc94054acc7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 11 Nov 2009 16:30:42 +0100 Subject: Adding patch from Dusty Hendrickson to allow lh_bootstrap_debootstrap to bootstrap from different section than main and evaluate LH_CATEGORIES for that purpose. --- helpers/lh_bootstrap_debootstrap | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap index 0c296b6..3f977b5 100755 --- a/helpers/lh_bootstrap_debootstrap +++ b/helpers/lh_bootstrap_debootstrap @@ -57,6 +57,12 @@ then DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --arch ${LH_ARCHITECTURE}" fi +if [ "${LH_CATEGORIES}" != "main" ] +then + # Modify categories to remove leading/trailing whitespaces and replace other whitepspace with commas + DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --components $(echo ${LH_CATEGORIES} | sed -E -e 's/^[ \t]*//;s/[ \t]*$//' -e 's/[ \t]+/,/g')" +fi + if [ -n "${LH_BOOTSTRAP_CONFIG}" ] then if [ -d "/usr/share/debootstrap/scripts/" ] -- cgit v1.0