[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debootstrap doesn't use configured categories/components

Patch attached. It takes the LH_CATEGORIES parameter if set and turns whitespace into commas to match the format of the debootstrap --components parameter.


Daniel Baumann wrote:
If I hack in a line in
lh_bootstrap_debootstrap to set the custom component name, the lh_build
process seems to work as expected.

please send a patch.

diff --git a/helpers/lh_bootstrap_debootstrap b/helpers/lh_bootstrap_debootstrap
index 0c296b6..681f72c 100755
--- a/helpers/lh_bootstrap_debootstrap
+++ b/helpers/lh_bootstrap_debootstrap
@@ -57,6 +57,12 @@ then
+if [ -n "${LH_CATEGORIES}" ]
+	# 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'`"
 if [ -n "${LH_BOOTSTRAP_CONFIG}" ]
 	if [ -d "/usr/share/debootstrap/scripts/" ]

Reply to: