summaryrefslogtreecommitdiff
path: root/bin/pdebuild-user-mode-linux
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pdebuild-user-mode-linux')
-rwxr-xr-xbin/pdebuild-user-mode-linux3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/pdebuild-user-mode-linux b/bin/pdebuild-user-mode-linux
index daab151..ea4c0e9 100755
--- a/bin/pdebuild-user-mode-linux
+++ b/bin/pdebuild-user-mode-linux
@@ -33,8 +33,7 @@ export PBCURRENTCOMMANDLINEOPERATION="pdebuild"
PKG_SOURCENAME=$(dpkg-parsechangelog|sed -n 's/^Source: //p')
PKG_VERSION=$(dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p')
-ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH)
-
+ARCHITECTURE=${ARCHITECTURE-$(dpkg-architecture -qDEB_HOST_ARCH)}
if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then
if [ ! readlink -f .. ]; then