From d42d90bbc4c17d223629a1175dc5ca4e77026ec9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 29 Jan 2012 21:21:27 -0500 Subject: Fix handling of "any" architecture name. --- (limited to 'lib/architecture') 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 } -- cgit v0.9.1