summaryrefslogtreecommitdiffstats
path: root/lib/architecture
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-29 21:21:27 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-29 21:21:27 (EST)
commitd42d90bbc4c17d223629a1175dc5ca4e77026ec9 (patch)
tree89d878cdb68daa60cc487eee15785cc31c9013dd /lib/architecture
parent9fe922131a398d47eb69ed5895d1b392684adbbe (diff)
Fix handling of "any" architecture name.
Diffstat (limited to 'lib/architecture')
-rw-r--r--lib/architecture8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/architecture b/lib/architecture
index b213b62..47102ba 100644
--- a/lib/architecture
+++ b/lib/architecture
@@ -57,13 +57,19 @@ oh_get_package_architecture()
return 0
fi
+ # "any".
+ if [ "${_pkgarch}" = any ]; then
+ echo "${OH_ARCH}"
+ return 0
+ fi
+
# Target platform.
if [ -n "$(echo "${_pkgarch}" | grep -E '^[^-]+$')" ]; then
echo "${_pkgarch}"
return 0
fi
- # "any" or target binary architecture.
+ # Target binary architecture.
echo "${OH_ARCH}"
return 0
}