Split build_arch as individual arch while checking emulator arch (thanks xiaoqiang0)
authorMichael Schroeder <mls@suse.de>
Thu, 27 Sep 2012 16:27:56 +0000 (18:27 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 27 Sep 2012 16:27:56 +0000 (18:27 +0200)
common_functions

index 9eb437d..da0c093 100755 (executable)
@@ -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