diff --git a/xbps-src/shutils/tmpl_funcs.sh.in b/xbps-src/shutils/tmpl_funcs.sh.in index 6b7ded64272..4b85d0cf419 100644 --- a/xbps-src/shutils/tmpl_funcs.sh.in +++ b/xbps-src/shutils/tmpl_funcs.sh.in @@ -293,8 +293,8 @@ prepare_tmpl() [ "$i" = "$XBPS_MACHINE" ] && found=si && break done if [ -n "${only_for_archs}" -a -z "$found" ]; then - msg_normal "this package can only be built on ${only_for_archs}.\n" - exit 0 + msg_normal "$pkgver: this package can only be built on ${only_for_archs}.\n" + return 0 fi unset XBPS_EXTRACT_DONE XBPS_APPLYPATCHES_DONE