Adding patch from Dusty Hendrickson <dhendrickson@cleversafe.com> to allow lh_bootstrap_debootstrap to bootstrap from different section than main and evaluate LH_CATEGORIES for that purpose.

This commit is contained in:
Daniel Baumann 2009-11-11 16:30:42 +01:00
parent 82277aec3b
commit 22c6dc6149
1 changed files with 6 additions and 0 deletions

View File

@ -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/" ]