mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-31 10:23:25 +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 () {
|
check_for_updates () {
|
||||||
# This checks for updates to installed SBo packages. Thanks to Mauro
|
# This checks for updates to installed SBo packages. Thanks to Mauro
|
||||||
# Giachero for this much-improved update code and related functions!
|
# 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
|
if [ "$SLACKVER" = "local" ]; then
|
||||||
dialog --title "ERROR" --msgbox \
|
dialog --title "ERROR" --msgbox \
|
||||||
"You cannot check for updates when using the /home/sbo/local \
|
"You cannot check for updates when using the /home/sbo/local \
|
||||||
repository." 8 40
|
repository." 8 40
|
||||||
return 0
|
return 0
|
||||||
fi
|
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 to see if there are any updates to installed SBo pkgs.
|
||||||
check_if_repo_exists
|
check_if_repo_exists
|
||||||
UPDATELIST=$TMP/sbopkg_updatelist
|
UPDATELIST=$TMP/sbopkg_updatelist
|
||||||
|
@ -272,8 +272,8 @@ check_for_updates () {
|
||||||
ChangeLog.txt. If you proceed, it might take a few seconds to \
|
ChangeLog.txt. If you proceed, it might take a few seconds to \
|
||||||
process, depending on the number of SlackBuilds.org packages \
|
process, depending on the number of SlackBuilds.org packages \
|
||||||
you have installed.\n\nSelect YES to continue or NO to \
|
you have installed.\n\nSelect YES to continue or NO to \
|
||||||
cancel.")" 19 50
|
cancel.")" 13 50
|
||||||
if [ $? = 1 ]; then
|
if [ $? != 0 ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue