diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/architecture | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/architecture b/lib/architecture index 4af24ef..daf8fff 100644 --- a/lib/architecture +++ b/lib/architecture @@ -25,11 +25,15 @@ oh_is_buildable() { _pkgarch=$(oh_get_field "${1}" Architecture) + # "all" or "any". if [ "${_pkgarch}" = all -o "${_pkgarch}" = any ]; then return 0 fi - # XXX: Handle platforms. + # Platform. + if [ -n "$(echo "${_pkgarch}" | grep -E '^[^-]+$')" ]; then + return [ "${_pkgarch}" = "${OH_PLATFORM}" ] + fi # Tokenize the 4-tuple binary architecture. IFS=- read _pkgcpu _pkgvendor _pkgkernel _pkglibs <<EOF |