xbps-src: add flag to build broken packages

helps to check if build can be fixed
This commit is contained in:
Piotr Wójcik 2022-04-23 13:12:36 +02:00 committed by Piotr
parent fab132bd11
commit 14d0b54a06
3 changed files with 33 additions and 13 deletions

View file

@ -34,8 +34,7 @@ check_pkg_arch() {
esac
done
if [ -z "$nonegation" -a -n "$match" ] || [ -n "$nonegation" -a -z "$match" ]; then
msg_red "${pkgname}-${version}_${revision}: this package cannot be built for ${_arch}.\n"
exit 2
report_broken "${pkgname}-${version}_${revision}: this package cannot be built for ${_arch}.\n"
fi
fi
}