xbps-src: add informative run mode

This commit is contained in:
Toyam Cox 2017-08-07 00:33:13 -04:00
parent d680fba5eb
commit 5a7e73b89a
2 changed files with 3 additions and 4 deletions

View File

@ -58,7 +58,7 @@ msg_red_nochroot() {
msg_error() {
msg_red "$@"
exit 1
[ -n "$XBPS_INFORMATIVE_RUN" ] || exit 1
}
msg_warn() {
@ -95,7 +95,6 @@ set_build_options() {
return 0
fi
for f in ${build_options}; do
_pkgname=${pkgname//\-/\_}
_pkgname=${_pkgname//\+/\_}

View File

@ -322,7 +322,6 @@ reconfigure_bootstrap_pkgs() {
touch -f $statefile
}
bootstrap_update() {
if [ -z "$CHROOT_READY" ]; then
return
@ -415,7 +414,7 @@ readonly XBPS_GCC_VERSION=${XBPS_GCC_VERSION_MAJOR}.${XBPS_GCC_VERSION_MINOR}.${
# main()
#
XBPS_OPTIONS=
XBPS_OPTSTRING="a:CEfgGhH:Ij:Lm:No:qr:tV"
XBPS_OPTSTRING="a:CEfgGhH:iIj:Lm:No:qr:tV"
# Preprocess arguments in order to allow options before and after XBPS_TARGET.
eval set -- $(getopt "$XBPS_OPTSTRING" "$@");
@ -430,6 +429,7 @@ while getopts "$XBPS_OPTSTRING" opt; do
g) readonly XBPS_DEBUG_PKGS=1; XBPS_OPTIONS+=" -g";;
H) readonly XBPS_HOSTDIR="$(readlink -f $OPTARG 2>/dev/null)"; XBPS_OPTIONS+=" -H $XBPS_HOSTDIR";;
h) usage && exit 0;;
i) export XBPS_INFORMATIVE_RUN=1; XBPS_OPTIONS+=" -i";;
I) readonly XBPS_SKIP_DEPS=1; XBPS_OPTIONS+=" -I";;
j) export XBPS_MAKEJOBS="$OPTARG"; XBPS_OPTIONS+=" -j $OPTARG";;
L) export NOCOLORS=1; XBPS_OPTIONS+=" -L";;