xbps-src: allow show of broken pkgs
This commit is contained in:
parent
0dfdd7c1dd
commit
7c9d1f61b0
|
@ -211,7 +211,7 @@ get_subpkgs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_pkg() {
|
setup_pkg() {
|
||||||
local pkg="$1" cross="$2"
|
local pkg="$1" cross="$2" show_broken="$3"
|
||||||
local basepkg val _vars f dbgflags arch
|
local basepkg val _vars f dbgflags arch
|
||||||
|
|
||||||
[ -z "$pkg" ] && return 1
|
[ -z "$pkg" ] && return 1
|
||||||
|
@ -475,7 +475,7 @@ setup_pkg() {
|
||||||
if [ "$cross" -a "$nocross" ]; then
|
if [ "$cross" -a "$nocross" ]; then
|
||||||
msg_red "$pkgver: cannot be cross compiled, exiting...\n"
|
msg_red "$pkgver: cannot be cross compiled, exiting...\n"
|
||||||
exit 2
|
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: cannot be built, it's currently broken; see the build log:\n"
|
||||||
msg_red "$pkgver: $broken\n"
|
msg_red "$pkgver: $broken\n"
|
||||||
exit 2
|
exit 2
|
||||||
|
|
4
xbps-src
4
xbps-src
|
@ -370,7 +370,7 @@ read_pkg() {
|
||||||
[ ! -r ./template ] && msg_error "missing build template in $(pwd).\n"
|
[ ! -r ./template ] && msg_error "missing build template in $(pwd).\n"
|
||||||
XBPS_TARGET_PKG=$(basename_cwd)
|
XBPS_TARGET_PKG=$(basename_cwd)
|
||||||
fi
|
fi
|
||||||
setup_pkg $XBPS_TARGET_PKG $XBPS_CROSS_BUILD
|
setup_pkg "$XBPS_TARGET_PKG" "$XBPS_CROSS_BUILD" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_distfiles_mirror() {
|
setup_distfiles_mirror() {
|
||||||
|
@ -714,7 +714,7 @@ case "$XBPS_TARGET" in
|
||||||
purge_distfiles
|
purge_distfiles
|
||||||
;;
|
;;
|
||||||
show)
|
show)
|
||||||
read_pkg
|
read_pkg ignore-broken
|
||||||
show_pkg
|
show_pkg
|
||||||
;;
|
;;
|
||||||
show-avail)
|
show-avail)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user