mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-07 08:46:04 +01: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
2 changed files with 28 additions and 17 deletions
|
@ -229,6 +229,10 @@ If a package is specified more than once, it gets queued only the first
|
||||||
time it is encountered.
|
time it is encountered.
|
||||||
.\"---------------------------------------------------------------------
|
.\"---------------------------------------------------------------------
|
||||||
.TP
|
.TP
|
||||||
|
.B \-B
|
||||||
|
Process the packages or queues without prompting for confirmation first.
|
||||||
|
.\"---------------------------------------------------------------------
|
||||||
|
.TP
|
||||||
.B \-c
|
.B \-c
|
||||||
Display a list of installed SBo packages and potential updates.
|
Display a list of installed SBo packages and potential updates.
|
||||||
.\"---------------------------------------------------------------------
|
.\"---------------------------------------------------------------------
|
||||||
|
|
|
@ -3906,6 +3906,7 @@ process_queue() {
|
||||||
echo
|
echo
|
||||||
echo "Pre-check complete."
|
echo "Pre-check complete."
|
||||||
echo
|
echo
|
||||||
|
if [[ ! $BULK ]]; then
|
||||||
crunch_fmt "Do you wish to proceed based on the search \
|
crunch_fmt "Do you wish to proceed based on the search \
|
||||||
results above? Packages not found will be skipped during \
|
results above? Packages not found will be skipped during \
|
||||||
the process."
|
the process."
|
||||||
|
@ -3922,6 +3923,7 @@ process_queue() {
|
||||||
*) unknown_response ;;
|
*) unknown_response ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
if [[ $KEEPLOG ]]; then
|
if [[ $KEEPLOG ]]; then
|
||||||
|
@ -4547,13 +4549,17 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This is the command line options and help.
|
# 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
|
case $OPT in
|
||||||
b ) # Download, build
|
b ) # Download, build
|
||||||
set_type build
|
set_type build
|
||||||
BUILDLIST+=("$OPTARG")
|
BUILDLIST+=("$OPTARG")
|
||||||
unset DIAG
|
unset DIAG
|
||||||
;;
|
;;
|
||||||
|
B ) # Bulk process without confirmation
|
||||||
|
BULK=1
|
||||||
|
unset DIAG
|
||||||
|
;;
|
||||||
c ) # Check for updates to installed SBo packages
|
c ) # Check for updates to installed SBo packages
|
||||||
CHK_UPDATES=1
|
CHK_UPDATES=1
|
||||||
unset DIAG
|
unset DIAG
|
||||||
|
@ -4637,6 +4643,7 @@ Usage: $SCRIPT [OPTIONS] <packagename(s)>
|
||||||
Options are:
|
Options are:
|
||||||
-b pkg/queue(s) Build the specified package(s). If one or more queuefiles
|
-b pkg/queue(s) Build the specified package(s). If one or more queuefiles
|
||||||
are specified, build the packages they refer to.
|
are specified, build the packages they refer to.
|
||||||
|
-B Bulk process the queue without confirmation.
|
||||||
-c Check for updates to installed packages.
|
-c Check for updates to installed packages.
|
||||||
-D localdir Location of local copy of the repositories.
|
-D localdir Location of local copy of the repositories.
|
||||||
-d pkg/queue(s) Like '-b', but only download sources.
|
-d pkg/queue(s) Like '-b', but only download sources.
|
||||||
|
|
Loading…
Add table
Reference in a new issue