allow 'ESC' to exit edit_build_queue menu; thanks to Nille for the bug report

This commit is contained in:
chess.griffin 2009-06-07 03:40:50 +00:00
parent 8b3544db4d
commit 846ace5e0f
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Tue May 26 14:50:17 UTC 2009
Sun Jun 7 03:40:11 UTC 2009
Sbopkg 0.XX.X released. This version contains the following fixes and
enhancements:
@ -105,3 +105,4 @@ enhancements:
* Remove the old "$APP $VERSION$BUILD $ONOFF" format for the temporary queue
and instead make all queue formats "$APP" only. This simplifies some code
and results in a small speed increase.
* Exit edit_build_queue menu with 'ESC'; thanks to Nille for the bug report.

View File

@ -1690,6 +1690,10 @@ edit_build_queue() {
CHOICE=$? # 0 = Delete, 1 = Cancel, 2 = Done, 3 = Delete All
REMOVED=$(< $ANSQUEUE)
case $CHOICE in
255|-1) # ESC
rm -f $REMOVEQUEUE
return 0
;;
0)
echo $REMOVED >> $WORKINGQUEUE
sed -i "/^$REMOVED .*$/d" $REMOVEQUEUE