Merge pull request #22403 from mlaventure/fix-docker-build-pkgs
Update build-deb to make correct use of DOCKER_BUILD_PKGS Upstream-commit: 0c68402887f7403f4fa7a6abccd3181f5f66d75d Component: engine
This commit is contained in:
@ -41,7 +41,10 @@ set -e
|
||||
builderDir="contrib/builder/deb/${PACKAGE_ARCH}"
|
||||
pkgs=( $(find "${builderDir}/"*/ -type d) )
|
||||
if [ ! -z "$DOCKER_BUILD_PKGS" ]; then
|
||||
pkgs=( $(echo ${DOCKER_BUILD_PKGS[@]/#/$builderDir\/}) )
|
||||
pkgs=()
|
||||
for p in $DOCKER_BUILD_PKGS; do
|
||||
pkgs+=( "$builderDir/$p" )
|
||||
done
|
||||
fi
|
||||
for dir in "${pkgs[@]}"; do
|
||||
[ -d "$dir" ] || { echo >&2 "skipping nonexistent $dir"; continue; }
|
||||
|
||||
@ -71,7 +71,10 @@ set -e
|
||||
builderDir="contrib/builder/rpm/${PACKAGE_ARCH}"
|
||||
pkgs=( $(find "${builderDir}/"*/ -type d) )
|
||||
if [ ! -z "$DOCKER_BUILD_PKGS" ]; then
|
||||
pkgs=( $(echo ${DOCKER_BUILD_PKGS[@]/#/$builderDir\/}) )
|
||||
pkgs=()
|
||||
for p in $DOCKER_BUILD_PKGS; do
|
||||
pkgs+=( "$builderDir/$p" )
|
||||
done
|
||||
fi
|
||||
for dir in "${pkgs[@]}"; do
|
||||
[ -d "$dir" ] || { echo >&2 "skipping nonexistent $dir"; continue; }
|
||||
|
||||
@ -16,7 +16,10 @@ test_deb_install(){
|
||||
builderDir="contrib/builder/deb/${PACKAGE_ARCH}"
|
||||
pkgs=( $(find "${builderDir}/"*/ -type d) )
|
||||
if [ ! -z "$DOCKER_BUILD_PKGS" ]; then
|
||||
pkgs=( $(echo ${DOCKER_BUILD_PKGS[@]/#/$builderDir\/}) )
|
||||
pkgs=()
|
||||
for p in $DOCKER_BUILD_PKGS; do
|
||||
pkgs+=( "$builderDir/$p" )
|
||||
done
|
||||
fi
|
||||
for dir in "${pkgs[@]}"; do
|
||||
[ -d "$dir" ] || { echo >&2 "skipping nonexistent $dir"; continue; }
|
||||
|
||||
Reference in New Issue
Block a user