From b2f186cda1649e4e37efe7e3a6776b402b238faa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Dec 2022 18:22:06 +0100 Subject: [PATCH] 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. --- build/tools/before_install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/tools/before_install.sh b/build/tools/before_install.sh index bc185efd45..fba2dc927b 100755 --- a/build/tools/before_install.sh +++ b/build/tools/before_install.sh @@ -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