mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-29 10:24:11 +01:00
Updates: fix confirmation dialog ESC behavior
The "check for updates" confirmation dialog should abort checking when the user presses ESC. Thanks to Alex for reporting the issue. Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
parent
166fe433e6
commit
102d89c316
1 changed files with 7 additions and 7 deletions
|
@ -250,17 +250,17 @@ get_sbo_packages () {
|
|||
check_for_updates () {
|
||||
# This checks for updates to installed SBo packages. Thanks to Mauro
|
||||
# Giachero for this much-improved update code and related functions!
|
||||
local NEWSB NEWINFO NEWVER
|
||||
local VERSION_EXPRESSION
|
||||
local TEMPFILE
|
||||
local STRING INDEX OLDNAME NAME VER ARCH BUILD
|
||||
|
||||
if [ "$SLACKVER" = "local" ]; then
|
||||
dialog --title "ERROR" --msgbox \
|
||||
"You cannot check for updates when using the /home/sbo/local \
|
||||
repository." 8 40
|
||||
return 0
|
||||
fi
|
||||
local NEWSB NEWINFO NEWVER
|
||||
local VERSION_EXPRESSION
|
||||
local TEMPFILE
|
||||
local STRING INDEX OLDNAME NAME VER ARCH BUILD
|
||||
|
||||
# Check to see if there are any updates to installed SBo pkgs.
|
||||
check_if_repo_exists
|
||||
UPDATELIST=$TMP/sbopkg_updatelist
|
||||
|
@ -272,8 +272,8 @@ check_for_updates () {
|
|||
ChangeLog.txt. If you proceed, it might take a few seconds to \
|
||||
process, depending on the number of SlackBuilds.org packages \
|
||||
you have installed.\n\nSelect YES to continue or NO to \
|
||||
cancel.")" 19 50
|
||||
if [ $? = 1 ]; then
|
||||
cancel.")" 13 50
|
||||
if [ $? != 0 ]; then
|
||||
continue
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue