From 3a7fe2d998c79d88262e678dc5403deb44a8fc0f Mon Sep 17 00:00:00 2001 From: Manuel Montecelo <mmontecelo@sipwise.com> Date: Wed, 20 Dec 2017 17:30:38 +0100 Subject: [PATCH] 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 --- deployment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment.sh b/deployment.sh index ad366fb..56055b8 100644 --- a/deployment.sh +++ b/deployment.sh @@ -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