aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/do-pkg/00-gen-pkg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'common/hooks/do-pkg/00-gen-pkg.sh')
-rw-r--r--common/hooks/do-pkg/00-gen-pkg.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/common/hooks/do-pkg/00-gen-pkg.sh b/common/hooks/do-pkg/00-gen-pkg.sh
index b809a6dc5eb..f0b70c8eebb 100644
--- a/common/hooks/do-pkg/00-gen-pkg.sh
+++ b/common/hooks/do-pkg/00-gen-pkg.sh
@@ -104,14 +104,12 @@ hook() {
local arch= binpkg= repo= _pkgver= _desc= _pkgn= _pkgv= _provides= \
_replaces= _reverts= f= found_dbg_subpkg=
- if [ "${archs// /}" = "noarch" ]; then
- arch=noarch
- elif [ -n "$XBPS_TARGET_MACHINE" ]; then
+ if [ -n "$XBPS_TARGET_MACHINE" ]; then
arch=$XBPS_TARGET_MACHINE
else
arch=$XBPS_MACHINE
fi
- if [ "${archs// /}" != "noarch" -a -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then
+ if [ -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then
arch=${XBPS_ARCH}
fi