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:
parent
543f5ce6d2
commit
b2f186cda1
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue