1
0
Fork 0

download_and_compile.sh: other fix for the dpkg-query invocation

Thanks to wkitty42 for pointing it out!
This commit is contained in:
Florent Rougon 2017-10-03 13:30:04 +02:00
parent e950c89c2f
commit 663eaaa65b

View file

@ -312,7 +312,7 @@ if [[ "$DOWNLOAD_PACKAGES" = "y" ]] && [[ "$APT_GET_UPDATE" = "y" ]]; then
fi
# Ensure 'dctrl-tools' is installed
if [[ "$(dpkg-query --showformat='${db:Status-Status}\n' --show dctrl-tools \
if [[ "$(dpkg-query --showformat='${Status}\n' --show dctrl-tools \
2>/dev/null | awk '{print $3}')" != "installed" ]]; then
if [[ "$DOWNLOAD_PACKAGES" = "y" ]]; then
_aptInstall dctrl-tools