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