From 04f489e83907702bf4b184b27d286ca2d811d06c Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Mon, 7 Aug 2017 00:35:13 -0400 Subject: [PATCH] xbps-src: expand usage of ignore-problems in reading pkgs --- common/xbps-src/shutils/common.sh | 10 +++++----- xbps-src | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index c5f330d448d..dab9014d943 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" show_broken="$3" + local pkg="$1" cross="$2" show_problems="$3" local basepkg val _vars f dbgflags arch [ -z "$pkg" ] && return 1 @@ -306,7 +306,7 @@ setup_pkg() { esac # Check if base-chroot is already installed. - if [ -z "$bootstrap" ]; then + if [ -z "$bootstrap" -a "z$show_problems" != "zignore-problems" ]; then check_installed_pkg base-chroot-0.1_1 if [ $? -ne 0 ]; then msg_red "${pkg} is not a bootstrap package and cannot be built without it.\n" @@ -490,16 +490,16 @@ setup_pkg() { wrksrc="$XBPS_BUILDDIR/$wrksrc" fi - if [ "$cross" -a "$nocross" ]; then + if [ "$cross" -a "$nocross" -a "z$show_problems" != "zignore-problems" ]; then msg_red "$pkgver: cannot be cross compiled, exiting...\n" exit 2 - elif [ "$broken" -a "z$show_broken" != "zignore-broken" ]; then + elif [ "$broken" -a "z$show_problems" != "zignore-problems" ]; then msg_red "$pkgver: cannot be built, it's currently broken; see the build log:\n" msg_red "$pkgver: $broken\n" exit 2 fi - if [ -n "$restricted" -a -z "$XBPS_ALLOW_RESTRICTED" ]; then + if [ -n "$restricted" -a -z "$XBPS_ALLOW_RESTRICTED" -a "z$show_problems" != "zignore-problems" ]; then msg_red "$pkgver: does not allow redistribution of sources/binaries (restricted license).\n" msg_red "If you really need this software, run 'echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf'\n" exit 2 diff --git a/xbps-src b/xbps-src index 74ba88e96bd..a7246f0fdb4 100755 --- a/xbps-src +++ b/xbps-src @@ -722,35 +722,35 @@ case "$XBPS_TARGET" in purge_distfiles ;; show) - read_pkg ignore-broken + read_pkg ignore-problems show_pkg ;; show-avail) - read_pkg + read_pkg ignore-problems show_avail ;; show-files) - read_pkg + read_pkg ignore-problems show_pkg_files ;; show-deps) - read_pkg + read_pkg ignore-problems show_pkg_deps ;; show-build-deps) - read_pkg + read_pkg ignore-problems show_pkg_build_deps ;; show-options) - read_pkg + read_pkg ignore-problems show_pkg_build_options ;; show-shlib-provides) - read_pkg + read_pkg ignore-problems show_pkg_shlib_provides ;; show-shlib-requires) - read_pkg + read_pkg ignore-problems show_pkg_shlib_requires ;; show-var) @@ -777,7 +777,7 @@ case "$XBPS_TARGET" in bulk_update -i ;; update-check) - read_pkg ignore-broken + read_pkg ignore-problems update_check ;; update-hash-cache)