Merge pull request #22403 from mlaventure/fix-docker-build-pkgs
Update build-deb to make correct use of DOCKER_BUILD_PKGS
This commit is contained in:
commit
0c68402887
3 changed files with 12 additions and 3 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue