From 726bb3ef93f9088262454bdb436fa73990eca98d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 12 Nov 2011 17:46:25 +0100 Subject: [PATCH] xbps-src: don't error out on pkgs that set only_for_archs, exit gracefully. --- xbps-src/shutils/tmpl_funcs.sh.in | 3 ++- xbps-src/shutils/verify_rundeps.sh | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xbps-src/shutils/tmpl_funcs.sh.in b/xbps-src/shutils/tmpl_funcs.sh.in index d7ee91025d4..6b7ded64272 100644 --- a/xbps-src/shutils/tmpl_funcs.sh.in +++ b/xbps-src/shutils/tmpl_funcs.sh.in @@ -293,7 +293,8 @@ prepare_tmpl() [ "$i" = "$XBPS_MACHINE" ] && found=si && break done if [ -n "${only_for_archs}" -a -z "$found" ]; then - msg_error "this package is only for: ${only_for_archs}.\n" + msg_normal "this package can only be built on ${only_for_archs}.\n" + exit 0 fi unset XBPS_EXTRACT_DONE XBPS_APPLYPATCHES_DONE diff --git a/xbps-src/shutils/verify_rundeps.sh b/xbps-src/shutils/verify_rundeps.sh index 90d5b706e12..c6b114b8e87 100644 --- a/xbps-src/shutils/verify_rundeps.sh +++ b/xbps-src/shutils/verify_rundeps.sh @@ -132,7 +132,6 @@ verify_rundeps() sed -i -r "/^Add_dependency run ${_rdep}([[:space:]]+\".*\")*$/d" $tmplf if find_rundep ${_rdep}; then Add_dependency run ${_rdep} - fi unset rdep _rdep rdepcnt done