Skip to content

Commit 1bb715f

Browse files
antonioantonio
authored andcommitted
disable lsb checks on non lsb platforms
1 parent a5295bd commit 1bb715f

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

distribute.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,20 @@ function check_pkg_deb_installed() {
279279
}
280280

281281
function check_build_deps() {
282-
DIST=$(lsb_release -is)
283-
info "Check build dependencies for $DIST"
284-
case $DIST in
285-
Debian|Ubuntu|LinuxMint)
286-
check_pkg_deb_installed "build-essential zlib1g-dev cython"
287-
;;
288-
*)
289-
debug "Avoid check build dependencies, unknow platform $DIST"
290-
;;
291-
esac
282+
local dist=""
283+
if which lsb_release -is >& /dev/null
284+
then
285+
dist=$(lsb_release -is)
286+
fi
287+
info "Check build dependencies for $dist"
288+
case $dist in
289+
Debian|Ubuntu|LinuxMint)
290+
check_pkg_deb_installed "build-essential zlib1g-dev cython"
291+
;;
292+
*)
293+
debug "Avoid check build dependencies, unknow platform $dist"
294+
;;
295+
esac
292296
}
293297

294298
function run_prepare() {

0 commit comments

Comments
 (0)