From 6844b5aa48e9aa51238bc689e95d797fb2967a9b Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 28 Oct 2012 18:33:04 +0100 Subject: [PATCH] suppress the eternally annoying warning message from dpkg-architecture --- mk-sbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk-sbuild b/mk-sbuild index ba87e6d..f5ac28f 100755 --- a/mk-sbuild +++ b/mk-sbuild @@ -504,7 +504,7 @@ if [ -n "$TARGET_ARCH" ]; then # Ultimately we would like there to be a "cross-build-essential-$arch" # package. In practice, the cross-g++ package is sufficient to pull in # everything we need. - if ! target_tuple=$(dpkg-architecture -a"$TARGET_ARCH" -qDEB_HOST_GNU_TYPE) + if ! target_tuple=$(dpkg-architecture -a"$TARGET_ARCH" -qDEB_HOST_GNU_TYPE 2>/dev/null) then echo "Unknown target architecture $TARGET_ARCH" >&2 exit 1