sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by David Brown (59532c6df135148c4f020a545179b5e61540bfc5)
- From: David Brown <scm AT mail.sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by David Brown (59532c6df135148c4f020a545179b5e61540bfc5)
- Date: Sat, 1 Jul 2006 13:41:04 -0500
GIT changes to master sorcery by David Brown <dmlb2000 AT gmail.com>:
ChangeLog | 4 ++++
var/lib/sorcery/modules/libsorcery | 7 +++++++
2 files changed, 11 insertions(+)
New commits:
commit 59532c6df135148c4f020a545179b5e61540bfc5
Author: David Brown <dmlb2000 AT gmail.com>
Commit: David Brown <dmlb2000 AT gmail.com>
libsorcery fixed the update sorcery scripts to check return value after
cast basesystem and either exit or continue if it fails
diff --git a/ChangeLog b/ChangeLog
index 462b1cc..327906a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
2006-07-01 David Brown <dmlb2000 AT gmail.com>
+ * libsorcery: added query to update_sorcery_scripts to check return
+ value from cast and ask user if they want to continue
+
+2006-07-01 David Brown <dmlb2000 AT gmail.com>
* convert: fixed whitespace removed tabs
* etc/sorcery/config: fixed whitespace removed tabs
* alter: fixed whitespace removed tabs
diff --git a/var/lib/sorcery/modules/libsorcery
b/var/lib/sorcery/modules/libsorcery
index a2020cf..0ec2049 100755
--- a/var/lib/sorcery/modules/libsorcery
+++ b/var/lib/sorcery/modules/libsorcery
@@ -31,6 +31,13 @@ function update_sorcery_scripts() {
if [[ `codex_find_spell_by_name basesystem` ]] ; then
if ! spell_ok basesystem ; then
cast basesystem
+ fi
+ if [[ $? != 0 ]]
+ then
+ if ! query "Would you like to continue anyway?" y
+ then
+ return 1
+ fi
fi
if [ "$UPDATEFIX" == on ] ; then
cleanse --fix basesystem
- [SM-Commit] GIT changes to master sorcery by David Brown (59532c6df135148c4f020a545179b5e61540bfc5), David Brown, 07/01/2006
Archive powered by MHonArc 2.6.24.