diff options
author | Michael Schroeder <mls@suse.de> | 2012-09-27 18:27:56 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-09-27 18:27:56 +0200 |
commit | 3954961663486e61498d7c313d1a870936807937 (patch) | |
tree | e39da8933bd16d584f4a5acccfc2619bdcb66cc0 | |
parent | 3f1147eb5cdaea9ac4d8ec3692d028ec849eaf03 (diff) | |
download | obs-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-x | common_functions | 3 |
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 |