summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/deb/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/deb/Makefile b/pkg/deb/Makefile
index beae5120..a0c226e2 100644
--- a/pkg/deb/Makefile
+++ b/pkg/deb/Makefile
@@ -203,8 +203,8 @@ check-build-depends-%:
esac ; \
not_installed= ; \
for pkg in $${pkgs}; do \
- dpkg-query -W $${pkg} >/dev/null 2>&1 ; \
- if [ $$? -ne 0 ]; then \
+ i=$$(dpkg-query -f '$${db:Status-Status}' -W $${pkg} 2>/dev/null) ; \
+ if [ $$? -ne 0 -o "$${i}" != "installed" ]; then \
not_installed="$${not_installed} $${pkg}" ; \
fi ; \
done ; \