1
0
Fork 0

download_and_compile.sh: fix detection of whether dctrl-tools is installed

Typical output of:

  dpkg-query --showformat='${Status}\n' --show dctrl-tools

is:

  install ok installed

(three words, not one). Thanks to wkitty42 for the report.
This commit is contained in:
Florent Rougon 2017-10-03 10:39:36 +02:00
parent c1a00bb944
commit bcb4eb6064

View file

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