diff options
Diffstat (limited to 'debian/_buildscripts/local/internals/_pbuilder.sh')
-rwxr-xr-x | debian/_buildscripts/local/internals/_pbuilder.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/_buildscripts/local/internals/_pbuilder.sh b/debian/_buildscripts/local/internals/_pbuilder.sh index 931fba56f..d2b176ded 100755 --- a/debian/_buildscripts/local/internals/_pbuilder.sh +++ b/debian/_buildscripts/local/internals/_pbuilder.sh @@ -47,7 +47,8 @@ END_D05_01 # Get building branch from .tdescmrevision file if [[ -f "$MOD_BUILD_PATH/.tdescmrevision" ]]; then BUILD_BRANCH=`sed -r "s/([^-]+)-.*/\1/" "$MOD_BUILD_PATH/.tdescmrevision"` - while read l_branch l_repo l_component; do + OLD_IFS=$IFS && IFS=$' \t' + while read l_branch l_repo l_component; do if [ "$l_branch" = "$BUILD_BRANCH" ]; then cat <<END_D05_02 >> "$PBUILDER_DEPS_HOOK" echo "deb [trusted=yes] $l_repo $DISTRO_NAME $l_component" >> /etc/apt/sources.list @@ -55,6 +56,7 @@ END_D05_02 break fi done <<< $(cat "$SCRIPT_DIR/internals/extra_deps.txt" | grep -E "^[[:space:]]*[^#[:space:]]+[[:space:]]+[^[:space:]]+.*$") + IFS=$OLD_IFS fi fi cat <<END_D05_03 >> "$PBUILDER_DEPS_HOOK" |