From 7c9d1f61b0eabed4b302d0423c3f801fb8b95bed Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Thu, 20 Oct 2016 19:49:45 -0400 Subject: [PATCH] xbps-src: allow show of broken pkgs --- common/xbps-src/shutils/common.sh | 4 ++-- xbps-src | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index aa60d860a26..735663eae6e 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -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 diff --git a/xbps-src b/xbps-src index 5dc4927a90f..0dd85e8dc3d 100755 --- a/xbps-src +++ b/xbps-src @@ -370,7 +370,7 @@ read_pkg() { [ ! -r ./template ] && msg_error "missing build template in $(pwd).\n" XBPS_TARGET_PKG=$(basename_cwd) fi - setup_pkg $XBPS_TARGET_PKG $XBPS_CROSS_BUILD + setup_pkg "$XBPS_TARGET_PKG" "$XBPS_CROSS_BUILD" "$1" } setup_distfiles_mirror() { @@ -714,7 +714,7 @@ case "$XBPS_TARGET" in purge_distfiles ;; show) - read_pkg + read_pkg ignore-broken show_pkg ;; show-avail)