xbps-src: don't error out on pkgs that set only_for_archs, exit gracefully.

This commit is contained in:
Juan RP 2011-11-12 17:46:25 +01:00
parent d52c103915
commit 726bb3ef93
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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