mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-29 10:24:11 +01:00
provide error msg if trying to run updates when using LOCALREPO/local directory
This commit is contained in:
parent
34689ae6f5
commit
97ae2a37a6
1 changed files with 7 additions and 1 deletions
|
@ -250,6 +250,12 @@ 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!
|
||||
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
|
||||
|
@ -1422,7 +1428,7 @@ rsync_repo () {
|
|||
if [ "$SLACKVER" = "local" ]; then
|
||||
dialog --title "ERROR" --msgbox \
|
||||
"You cannot rsync when using the /home/sbo/local repository." \
|
||||
8 30
|
||||
8 40
|
||||
continue
|
||||
fi
|
||||
directory_checks
|
||||
|
|
Loading…
Reference in a new issue