Fix bug where "sbopkg -c -v local" showed a dialog.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-04-29 14:35:25 +00:00
parent 66c52845b6
commit b599f398a3

View file

@ -1619,9 +1619,13 @@ rsync_repo() {
local SBOPKGOUTPUT=$SBOPKGTMP/sbopkg_output
if [[ $SLACKVER == local ]]; then
dialog --title "ERROR" --msgbox \
"You cannot rsync when using the $LOCALREPO/local repository." \
8 40
if [[ $DIAG ]]; then
dialog --title "ERROR" --msgbox $(crunch "You cannot rsync when \
using the $LOCALREPO/local repository.") 8 40
else
crunch_fmt "You cannot rsync when using the $LOCALREPO/local \
repository."
fi
continue
fi
directory_checks