Fix bindeps installation on CentOS

Change-Id: I55d2dcc3652543d221b5c60967bff148fa98505e
This commit is contained in:
Federico Ressi 2022-01-21 14:04:36 +01:00
parent 90257b5a67
commit 7d7ee9691f

View File

@ -4,8 +4,9 @@ set -ex
INSTALL_PACKAGE=$(which yum || which apt) INSTALL_PACKAGE=$(which yum || which apt)
SUDO=$(which sudo || true) SUDO=$(which sudo || true)
TOX="python3 -m tox"
if ! tox -e bindep ; then if ! ${TOX} -e bindep ; then
.tox/bindep/bin/bindep -b | xargs -r ${SUDO} "${INSTALL_PACKAGE}" install -y .tox/bindep/bin/bindep -b | xargs -r ${SUDO} "${INSTALL_PACKAGE}" install -y
.tox/bindep/bin/bindep .tox/bindep/bin/bindep
fi fi