provide error msg if trying to run updates when using LOCALREPO/local directory

This commit is contained in:
chess.griffin 2009-01-21 04:59:28 +00:00
parent 34689ae6f5
commit 97ae2a37a6

View file

@ -250,6 +250,12 @@ 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!
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 NEWSB NEWINFO NEWVER
local VERSION_EXPRESSION local VERSION_EXPRESSION
local TEMPFILE local TEMPFILE
@ -1422,7 +1428,7 @@ rsync_repo () {
if [ "$SLACKVER" = "local" ]; then if [ "$SLACKVER" = "local" ]; then
dialog --title "ERROR" --msgbox \ dialog --title "ERROR" --msgbox \
"You cannot rsync when using the /home/sbo/local repository." \ "You cannot rsync when using the /home/sbo/local repository." \
8 30 8 40
continue continue
fi fi
directory_checks directory_checks