xbps-src: expand usage of ignore-problems in reading pkgs
This commit is contained in:
parent
5a7e73b89a
commit
04f489e839
|
@ -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
|
||||
|
|
18
xbps-src
18
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)
|
||||
|
|
Loading…
Reference in New Issue