Deal with the absence of lsb_release in the pre-build script

For now just don't do anything distribution-specific if it's absent, if
we really need it, we can install it later.
This commit is contained in:
Vadim Zeitlin 2022-12-30 18:22:06 +01:00
parent 543f5ce6d2
commit b2f186cda1

View file

@ -40,7 +40,13 @@ case $(uname -s) in
return $rc
}
codename=$(lsb_release --codename --short)
# We could install lsb-release package if the command is missing,
# but we currently only actually use codename on the systems where
# it's guaranteed to be installed, so don't bother doing it for now.
if command -v lsb_release > /dev/null; then
codename=$(lsb_release --codename --short)
fi
if [ "$wxUSE_ASAN" = 1 ]; then
# Enable the `-dbgsym` repositories.
echo "deb http://ddebs.ubuntu.com ${codename} main restricted universe multiverse