mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 15:13:51 +02:00
xbps-src: check_pkg_arch now exits with errcode 2.
This commit is contained in:
parent
0337b86f43
commit
95ca05e6e6
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
|
|
||||||
check_pkg_arch() {
|
check_pkg_arch() {
|
||||||
local cross="$1" err="$2" _arch f found
|
local cross="$1" _arch f found
|
||||||
|
|
||||||
if [ -n "$only_for_archs" ]; then
|
if [ -n "$only_for_archs" ]; then
|
||||||
if [ -n "$cross" ]; then
|
if [ -n "$cross" ]; then
|
||||||
|
@ -19,7 +19,7 @@ check_pkg_arch() {
|
||||||
done
|
done
|
||||||
if [ -z "$found" ]; then
|
if [ -z "$found" ]; then
|
||||||
msg_red "$pkgname: this package cannot be built for ${_arch}.\n"
|
msg_red "$pkgname: this package cannot be built for ${_arch}.\n"
|
||||||
exit ${err:=0}
|
exit 2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ show_pkg_files() {
|
||||||
show_pkg_build_deps() {
|
show_pkg_build_deps() {
|
||||||
local f x _pkgname _dep found
|
local f x _pkgname _dep found
|
||||||
|
|
||||||
check_pkg_arch "$XBPS_CROSS_BUILD" 1
|
check_pkg_arch "$XBPS_CROSS_BUILD"
|
||||||
setup_pkg_depends
|
setup_pkg_depends
|
||||||
# build time deps
|
# build time deps
|
||||||
for f in ${host_build_depends} ${build_depends} ${run_depends}; do
|
for f in ${host_build_depends} ${build_depends} ${run_depends}; do
|
||||||
|
|
Loading…
Add table
Reference in a new issue