From 1c4edc0826d446cdc8bd8a2e533ef56e57ad81ce Mon Sep 17 00:00:00 2001 From: John Date: Thu, 21 Feb 2019 16:30:31 +0100 Subject: [PATCH] common: add compatibility code for noarch in do-pkg stage resolves #9016 --- common/xbps-src/libexec/xbps-src-dopkg.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/xbps-src/libexec/xbps-src-dopkg.sh b/common/xbps-src/libexec/xbps-src-dopkg.sh index f367634e087..d2ff5531730 100755 --- a/common/xbps-src/libexec/xbps-src-dopkg.sh +++ b/common/xbps-src/libexec/xbps-src-dopkg.sh @@ -34,6 +34,15 @@ if [ "$sourcepkg" != "$PKGNAME" ]; then ${PKGNAME}_package pkgname=$PKGNAME + if [ -n "$noarch" ]; then + archs=noarch + unset noarch + msg_warn "deprecated property 'noarch'. Use archs=noarch instead!\n" + fi + if [ -n "$only_for_archs" ]; then + archs="$only_for_archs" + unset only_for_archs + fi fi if [ -s $XBPS_MASTERDIR/.xbps_chroot_init ]; then