Merge pull request #5014 from Vaelatern/ignore_broken_for_show

xbps-src: allow show of broken pkgs
This commit is contained in:
Toyam Cox 2016-10-22 23:42:05 -04:00 committed by GitHub
commit bdbe473663
2 changed files with 4 additions and 4 deletions

View file

@ -211,7 +211,7 @@ get_subpkgs() {
}
setup_pkg() {
local pkg="$1" cross="$2"
local pkg="$1" cross="$2" show_broken="$3"
local basepkg val _vars f dbgflags arch
[ -z "$pkg" ] && return 1
@ -475,7 +475,7 @@ setup_pkg() {
if [ "$cross" -a "$nocross" ]; then
msg_red "$pkgver: cannot be cross compiled, exiting...\n"
exit 2
elif [ "$broken" ]; then
elif [ "$broken" -a "z$show_broken" != "zignore-broken" ]; then
msg_red "$pkgver: cannot be built, it's currently broken; see the build log:\n"
msg_red "$pkgver: $broken\n"
exit 2