removed lsb_release dependency

This commit is contained in:
Joel Moriana 2021-07-21 16:53:42 +02:00 committed by bernat
parent 622a7104b3
commit 00d8faacdf
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ if ${BUILD_PYTHONAPI} ; then
# Add patchelf to the path. Auditwheel relies on patchelf to repair ELF files.
export PATH="${LIBCARLA_INSTALL_CLIENT_FOLDER}/bin:${PATH}"
if [[ $(lsb_release -c --short) != "bionic" ]] && [[ ! -z ${TARGET_WHEEL_PLATFORM} ]]; then
CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME)
if [[ ! -z ${TARGET_WHEEL_PLATFORM} ]] && [[ ${CODENAME#*=} != "bionic" ]] ; then
log "A target platform has been specified but you are not using a compatible linux distribution. The wheel repair step will be skipped"
TARGET_WHEEL_PLATFORM=
fi