fix helper script apt packaging to work with buster

This commit is contained in:
Vincent Sanders 2018-11-06 21:55:20 +00:00
parent 5b235b5195
commit 0bd66d4d04
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ fi
# apt get commandline to install necessary dev packages
ns-apt-get-install()
{
if /usr/bin/apt-cache show libssl1.0-dev >/dev/null 2>&1; then
LIBCURL_OPENSSL_CONFLICTS="$(/usr/bin/apt-cache show libcurl4-openssl-dev | grep Conflicts | grep -o libssl1.0-dev)"
if [ "x${LIBCURL_OPENSSL_CONFLICTS}" != "x" ]; then
NS_DEV_DEB="${NS_DEV_DEB} libssl-dev"
elif /usr/bin/apt-cache show libssl1.0-dev >/dev/null 2>&1; then
NS_DEV_DEB="${NS_DEV_DEB} libssl1.0-dev"
else
NS_DEV_DEB="${NS_DEV_DEB} libssl-dev"