mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-12 21:10:21 +03:00
enable new -B flag to bulk-process the queue without prompting; this was inspired by Eric Pratt's original patch.
This commit is contained in:
parent
4d8610a95b
commit
98c5a1f023
@ -229,6 +229,10 @@ If a package is specified more than once, it gets queued only the first
|
||||
time it is encountered.
|
||||
.\"---------------------------------------------------------------------
|
||||
.TP
|
||||
.B \-B
|
||||
Process the packages or queues without prompting for confirmation first.
|
||||
.\"---------------------------------------------------------------------
|
||||
.TP
|
||||
.B \-c
|
||||
Display a list of installed SBo packages and potential updates.
|
||||
.\"---------------------------------------------------------------------
|
||||
|
@ -3906,6 +3906,7 @@ process_queue() {
|
||||
echo
|
||||
echo "Pre-check complete."
|
||||
echo
|
||||
if [[ ! $BULK ]]; then
|
||||
crunch_fmt "Do you wish to proceed based on the search \
|
||||
results above? Packages not found will be skipped during \
|
||||
the process."
|
||||
@ -3922,6 +3923,7 @@ process_queue() {
|
||||
*) unknown_response ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
echo
|
||||
fi
|
||||
if [[ $KEEPLOG ]]; then
|
||||
@ -4547,13 +4549,17 @@ else
|
||||
fi
|
||||
|
||||
# This is the command line options and help.
|
||||
while getopts ":b:cD:d:e:f:g:hi:kloPpqRrs:uV:v" OPT; do
|
||||
while getopts ":b:BcD:d:e:f:g:hi:kloPpqRrs:uV:v" OPT; do
|
||||
case $OPT in
|
||||
b ) # Download, build
|
||||
set_type build
|
||||
BUILDLIST+=("$OPTARG")
|
||||
unset DIAG
|
||||
;;
|
||||
B ) # Bulk process without confirmation
|
||||
BULK=1
|
||||
unset DIAG
|
||||
;;
|
||||
c ) # Check for updates to installed SBo packages
|
||||
CHK_UPDATES=1
|
||||
unset DIAG
|
||||
@ -4637,6 +4643,7 @@ Usage: $SCRIPT [OPTIONS] <packagename(s)>
|
||||
Options are:
|
||||
-b pkg/queue(s) Build the specified package(s). If one or more queuefiles
|
||||
are specified, build the packages they refer to.
|
||||
-B Bulk process the queue without confirmation.
|
||||
-c Check for updates to installed packages.
|
||||
-D localdir Location of local copy of the repositories.
|
||||
-d pkg/queue(s) Like '-b', but only download sources.
|
||||
|
Loading…
Reference in New Issue
Block a user