Applying slightly modified patch from Michael Hudson <michael.hudson@canonical.com> to make arguments in debootstrap calls more robust.

This commit is contained in:
Daniel Baumann 2010-11-29 23:04:05 +01:00
parent e453296201
commit 780b86aebf
1 changed files with 2 additions and 2 deletions

View File

@ -55,13 +55,13 @@ mkdir -p chroot
# Setting debootstrap options
if [ -n "${LB_ARCHITECTURE}" ]
then
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --arch ${LB_ARCHITECTURE}"
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --arch=${LB_ARCHITECTURE}"
fi
if [ "${LB_ARCHIVE_AREAS}" != "main" ]
then
# 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
if [ -n "${LB_BOOTSTRAP_CONFIG}" ]