Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master sorcery by David Brown (b91a4065fbf899cec344974e4c8f20fc9fb31323)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: David Brown <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master sorcery by David Brown (b91a4065fbf899cec344974e4c8f20fc9fb31323)
  • Date: Mon, 14 May 2007 23:17:27 -0500

GIT changes to master sorcery by David Brown <dmlb2000 AT gmail.com>:

ChangeLog | 5 +++++
etc/sorcery/config | 2 +-
usr/sbin/sorcery | 7 ++++++-
3 files changed, 12 insertions(+), 2 deletions(-)

New commits:
commit b91a4065fbf899cec344974e4c8f20fc9fb31323
Author: David Brown <dmlb2000 AT gmail.com>
Commit: David Brown <dmlb2000 AT gmail.com>

added a new castfs debug level option to the sorcery menu so users can
turn that option off

diff --git a/ChangeLog b/ChangeLog
index 8ddef5c..3471dda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-14 David Brown <dmlb2000 AT gmail.com>
+ * sorcery: added a castfs debug level option to sorcery debug dialog
+ * config: made the CASTFS_DEBUG_LEVEL variable able to be set from
+ local config
+
2007-04-18 David Kowis <dkowis AT shlrm.org>
* gaze: Bug 13711, support force_depends in gaze dependencies.
Patch from Jaka Kranjc.
diff --git a/etc/sorcery/config b/etc/sorcery/config
index 3a86e4e..c17a661 100755
--- a/etc/sorcery/config
+++ b/etc/sorcery/config
@@ -181,7 +181,7 @@
CONFIG_STAGE_DIRECTORY=${STATE_ROOT}/var/state/sorcery/staged_configs
CASTFS_UNSTAGED_PATHS="/dev /proc /tmp /var/tmp /sys ${BUILD_DIRECTORY}
${SGL_LIBRARY} ${INSTALL_ROOT}/${SGL_LIBRARY} ${SOURCE_CACHE} ${CONFIG_CACHE}
${INSTALL_ROOT}/${CONFIG_CACHE} ${STATE_DIRECTORY} ${LOG_DIRECTORY}"
# this value is a mask bits set mean output is done for that particular
# component of castfs
-CASTFS_DEBUG_LEVEL=255
+CASTFS_DEBUG_LEVEL=${CASTFS_DEBUG_LEVEL:=255}

# this makes appending the sorcery path idempotent
[ -z ${PATH##*$SORCERY_PATH*} ] || export PATH="$PATH:$SORCERY_PATH"
diff --git a/usr/sbin/sorcery b/usr/sbin/sorcery
index 767b12b..f507c28 100755
--- a/usr/sbin/sorcery
+++ b/usr/sbin/sorcery
@@ -1481,6 +1481,7 @@ sorcery_devel_settings() {

local D_HELP="Set the debugging file for normal debugging."
local S_HELP="Turn on Super Debug. You probably don't want to do this."
+ local C_HELP="Change this to 0 to remove castfs debugging."

while

@@ -1493,7 +1494,8 @@ sorcery_devel_settings() {
"" \
0 0 0 \
"D" "Debug file" "$D_HELP" \
- "S" "Super debugging toggle" "$S_HELP"'`
+ "S" "Super debugging toggle" "$S_HELP" \
+ "C" "Castfs debuging level" "$C_HELP"'`
do

case $COMMAND in
@@ -1505,6 +1507,9 @@ sorcery_devel_settings() {
TOGGLE=`eval $DIALOG --yesno \"$TEXT\" 0 0` &&
( modify_local_config "SUPER_DEBUG" "on" ; modify_local_config "set"
"-x" "command" ) ||
( modify_local_config "SUPER_DEBUG" "" ; modify_local_config "set"
"+x" "command" ) ;;
+ C) TEXT="Note: This is a numeric value, if you change this to 0, castfs
won't do any debugging, if its anything but a numeric value castfs could
break."
+ LEVEL=`eval $DIALOG --ok-label "Commit" --inputbox \"$TEXT\" 0 0
\"$CASTFS_DEBUG_LEVEL\"` &&
+ modify_local_config "CASTFS_DEBUG_LEVEL" "$LEVEL" ;;

esac




  • [SM-Commit] GIT changes to master sorcery by David Brown (b91a4065fbf899cec344974e4c8f20fc9fb31323), David Brown, 05/15/2007

Archive powered by MHonArc 2.6.24.

Top of Page