Applying slightly modified patch from Michael Hudson <michael.hudson@canonical.com> to make arguments in debootstrap calls more robust.
This commit is contained in:
parent
aa456e33b5
commit
92f134138c
|
@ -55,13 +55,13 @@ mkdir -p chroot
|
||||||
# Setting debootstrap options
|
# Setting debootstrap options
|
||||||
if [ -n "${LB_ARCHITECTURE}" ]
|
if [ -n "${LB_ARCHITECTURE}" ]
|
||||||
then
|
then
|
||||||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --arch ${LB_ARCHITECTURE}"
|
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --arch=${LB_ARCHITECTURE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${LB_ARCHIVE_AREAS}" != "main" ]
|
if [ "${LB_ARCHIVE_AREAS}" != "main" ]
|
||||||
then
|
then
|
||||||
# Modify archive areas to remove leading/trailing whitespaces and replace other whitepspace with commas
|
# Modify archive areas to remove leading/trailing whitespaces and replace other whitepspace with commas
|
||||||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --components $(echo ${LB_ARCHIVE_AREAS} | sed -e 's| |,|g')"
|
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --components=$(echo ${LB_ARCHIVE_AREAS} | sed -e 's| |,|g')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${LB_BOOTSTRAP_CONFIG}" ]
|
if [ -n "${LB_BOOTSTRAP_CONFIG}" ]
|
||||||
|
|
Loading…
Reference in New Issue