TT#25551 Improve the way to detect installed packages

It seems that this place was missing when we did the bulk of the
changes.

Change-Id: Ic099bead9c8f8c39a65da0cfba384e910a80d6ee
changes/67/17867/1
Manuel Montecelo 7 years ago
parent 90c8e7b95c
commit 3a7fe2d998

@ -200,7 +200,7 @@ install_sipwise_key() {
install_apt_transport_https () {
echo "Installing apt-transport-https"
if dpkg -s apt-transport-https 2>&1 | grep -qE "^Installed" ; then
if [ "$(dpkg-query -f "\${db:Status-Status} \${db:Status-Eflag}" -W apt-transport-https 2>/dev/null)" = 'installed ok' ]; then
echo "apt-transport-https is already installed, nothing to do about it."
return 0
fi

Loading…
Cancel
Save