fix installation check after package build
This commit is contained in:
@@ -344,12 +344,13 @@ done
|
||||
docker exec -u $(id -u):$(id -g) ${DOCKER_ID} ./bootstrap.sh -t "${targets}" ${host} "${FLAGS[@]}"
|
||||
|
||||
# last check: try to install built deb or rpm files (if not already cleaned up)
|
||||
if test "${targets//deb/}" != "${targets}"; then
|
||||
if ls *.deb > /dev/null 2> /dev/null; then
|
||||
docker exec ${DOCKER_ID} bash -c "apt-get install ${OPTIONS} ${PREVENT} /workdir/*.deb"
|
||||
fi
|
||||
# not supported in trusty and jessie
|
||||
if test "$mode" = deb -a "${img//trusty/}" = "${img}" -a "${img//jessie/}" = "${img}"; then
|
||||
if test "${targets//deb/}" != "${targets}" && ls *.deb > /dev/null 2> /dev/null; then
|
||||
docker exec ${DOCKER_ID} bash -c "apt-get install ${OPTIONS} ${PREVENT} /workdir/*.deb"
|
||||
fi
|
||||
fi
|
||||
if test "${targets//rpm/}" != "${targets}"; then
|
||||
if test "$mode" = rpm -a "${targets//rpm/}" != "${targets}"; then
|
||||
if ls *.rpm > /dev/null 2> /dev/null; then
|
||||
docker exec ${DOCKER_ID} bash -c "${INSTALL_TOOL} /workdir/*.rpm"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user