diff --git a/xbps-src b/xbps-src index 77695b9f510..53fecd9bb46 100755 --- a/xbps-src +++ b/xbps-src @@ -242,6 +242,8 @@ $(print_cross_targets) This flag requires xbps-uchroot(1), and won't work on filesystems that don't support overlayfs. +-v Show verbose messages (only affects update-check). + -V Print version of xbps, then exit. _EOF @@ -371,7 +373,7 @@ readonly XBPS_SRC_VERSION="113" export XBPS_MACHINE=$(xbps-uhelper -C /dev/null arch) XBPS_OPTIONS= -XBPS_OPTSTRING="1A:a:bc:CEfgGhH:iIj:Lm:No:p:qsQKr:tV" +XBPS_OPTSTRING="1A:a:bc:CEfgGhH:iIj:Lm:No:p:qsQKr:tvV" # Preprocess arguments in order to allow options before and after XBPS_TARGET. eval set -- $(getopt "$XBPS_OPTSTRING" "$@"); @@ -407,6 +409,7 @@ while getopts "$XBPS_OPTSTRING" opt; do r) XBPS_ARG_ALT_REPOSITORY="$OPTARG"; XBPS_OPTIONS+=" -r $OPTARG";; s) XBPS_ARG_STRICT=yes; XBPS_OPTIONS+=" -s";; t) XBPS_ARG_TEMP_MASTERDIR=1; XBPS_OPTIONS+=" -t -C";; + v) XBPS_ARG_VERBOSE=1; XBPS_OPTIONS+=" -v";; V) echo "xbps-src-$XBPS_SRC_VERSION $(xbps-uhelper -V)" && exit 0;; --) shift; break;; esac @@ -497,6 +500,7 @@ fi [ -n "$XBPS_ARG_CROSS_BUILD" ] && XBPS_CROSS_BUILD="$XBPS_ARG_CROSS_BUILD" [ -n "$XBPS_ARG_CHECK_PKGS" ] && XBPS_CHECK_PKGS="$XBPS_ARG_CHECK_PKGS" [ -n "$XBPS_ARG_MAKEJOBS" ] && XBPS_MAKEJOBS="$XBPS_ARG_MAKEJOBS" +[ -n "$XBPS_ARG_VERBOSE" ] && XBPS_VERBOSE="$XBPS_ARG_VERBOSE" # Default to nproc for XBPS_MAKEJOBS if not set and nproc is available if command -v nproc >/dev/null ; then