mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-17 21:33:25 +01:00
Fix queue processing.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
parent
da958c527d
commit
50c293ff1e
1 changed files with 4 additions and 3 deletions
|
@ -1655,12 +1655,13 @@ add_item_to_queue() {
|
||||||
|
|
||||||
view_queue() {
|
view_queue() {
|
||||||
# This function displays the contents of the build queue.
|
# This function displays the contents of the build queue.
|
||||||
|
# Returns 0 if the user choose OK, nonzero otherwise
|
||||||
|
|
||||||
local ANSQUEUE=$SBOPKGTMP/sbopkg-ans-queue
|
local ANSQUEUE=$SBOPKGTMP/sbopkg-ans-queue
|
||||||
local REVERSEDQUEUE=$SBOPKGTMP/sbopkg-reversed-queue
|
local REVERSEDQUEUE=$SBOPKGTMP/sbopkg-reversed-queue
|
||||||
local WORKINGQUEUE=$SBOPKGTMP/sbopkg-working-queue
|
local WORKINGQUEUE=$SBOPKGTMP/sbopkg-working-queue
|
||||||
|
|
||||||
empty_queue && return
|
empty_queue && return 1
|
||||||
while :; do
|
while :; do
|
||||||
dialog --title "Viewing Build Queue" --separate-output \
|
dialog --title "Viewing Build Queue" --separate-output \
|
||||||
--extra-button --extra-label "Reverse" \
|
--extra-button --extra-label "Reverse" \
|
||||||
|
@ -1704,7 +1705,7 @@ view_queue() {
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
rm -f $WORKINGQUEUE
|
rm -f $WORKINGQUEUE
|
||||||
continue
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
rsync_command() {
|
rsync_command() {
|
||||||
|
@ -3078,7 +3079,7 @@ queue_menu() {
|
||||||
"Rename") rename_user_queue ;;
|
"Rename") rename_user_queue ;;
|
||||||
"Delete") delete_user_queue ;;
|
"Delete") delete_user_queue ;;
|
||||||
"Process") #empty_queue && continue
|
"Process") #empty_queue && continue
|
||||||
view_queue && continue
|
view_queue || continue
|
||||||
cp $SBOPKGTMP/sbopkg-ans-queue $STARTQUEUE
|
cp $SBOPKGTMP/sbopkg-ans-queue $STARTQUEUE
|
||||||
start_dialog_queue ;;
|
start_dialog_queue ;;
|
||||||
*) break ;;
|
*) break ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue