summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/architecture14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/architecture b/lib/architecture
index daf8fff..3e80e82 100644
--- a/lib/architecture
+++ b/lib/architecture
@@ -63,19 +63,11 @@ oh_get_package_architecture()
return 0
fi
- # "any".
- if [ "${_pkgarch}" = any ]; then
+ if [ -n "${OH_PLATFORM}" ]; then
+ echo "${OH_PLATFORM}"
+ else
echo "${OH_ARCH}"
- return 0
- fi
-
- # Target platform.
- if [ -n "$(echo "${_pkgarch}" | grep -E '^[^-]+$')" ]; then
- echo "${_pkgarch}"
- return 0
fi
- # Target binary architecture.
- echo "${OH_ARCH}"
return 0
}