xbps-src: return 0 on success, 1 on error and 2 on nocross/broken (ignore).
This commit is contained in:
parent
bc3c2eecaf
commit
0337b86f43
4 changed files with 8 additions and 8 deletions
|
@ -425,11 +425,11 @@ setup_pkg() {
|
|||
|
||||
if [ "$cross" -a "$nocross" ]; then
|
||||
msg_red "$pkgver: cannot be cross compiled, exiting...\n"
|
||||
exit 0
|
||||
exit 2
|
||||
elif [ "$broken" ]; then
|
||||
msg_red "$pkgver: cannot be built, it's currently broken; see the build log:\n"
|
||||
msg_red "$pkgver: $broken\n"
|
||||
exit 0
|
||||
exit 2
|
||||
fi
|
||||
|
||||
export XBPS_STATEDIR="${XBPS_BUILDDIR}/.xbps-${sourcepkg}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue