summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-04-21 13:45:34 +0200
committerX2go Administrator <x2go-admin@ymir.das-netzwerkteam.de>2011-04-21 13:46:41 +0200
commit0a7bbf6fe96bab18f8acfe2c0b50f1c7c94a5921 (patch)
treee4d6ae333c911768add1a78102c64a7344c52609
parent8d68e2a366f3950ef8625e6fec4ac33822c8ce96 (diff)
downloadbuildscripts-0a7bbf6fe96bab18f8acfe2c0b50f1c7c94a5921.tar.gz
buildscripts-0a7bbf6fe96bab18f8acfe2c0b50f1c7c94a5921.tar.bz2
buildscripts-0a7bbf6fe96bab18f8acfe2c0b50f1c7c94a5921.zip
allows the $ARCHITECTURE env var to be passed to pdebuild-uml
-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