summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-09-27 18:27:56 +0200
committerMichael Schroeder <mls@suse.de>2012-09-27 18:27:56 +0200
commit3954961663486e61498d7c313d1a870936807937 (patch)
treee39da8933bd16d584f4a5acccfc2619bdcb66cc0
parent3f1147eb5cdaea9ac4d8ec3692d028ec849eaf03 (diff)
downloadobs-build-3954961663486e61498d7c313d1a870936807937.tar.gz
obs-build-3954961663486e61498d7c313d1a870936807937.tar.bz2
obs-build-3954961663486e61498d7c313d1a870936807937.zip
Split build_arch as individual arch while checking emulator arch (thanks xiaoqiang0)
-rwxr-xr-xcommon_functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/common_functions b/common_functions
index 9eb437d..da0c093 100755
--- a/common_functions
+++ b/common_functions
@@ -45,8 +45,9 @@ check_exit()
is_emulator_arch()
{
local arch
+ local qarch=":$BUILD_ARCH:"
for arch in $EMULATOR_ARCHS; do
- if test "$BUILD_ARCH" = "$arch" -a "$BUILD_HOST_ARCH" != "$arch"; then
+ if test "$qarch" != "${qarch/:$arch:/}" -a "$BUILD_HOST_ARCH" != "$arch"; then
return 0
fi
done