xbps-src: check_pkg_arch now exits with errcode 2.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# vim: set ts=4 sw=4 et:
|
||||
|
||||
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 "$cross" ]; then
|
||||
@@ -19,7 +19,7 @@ check_pkg_arch() {
|
||||
done
|
||||
if [ -z "$found" ]; then
|
||||
msg_red "$pkgname: this package cannot be built for ${_arch}.\n"
|
||||
exit ${err:=0}
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user