Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] BZR Change 14 to stage-root sorcery by David Brown <dmlb2000@dmlb2004>

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: bzr AT mail.sourcemage.org
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] BZR Change 14 to stage-root sorcery by David Brown <dmlb2000@dmlb2004>
  • Date: Wed, 12 Apr 2006 16:25:03 -0500

------------------------------------------------------------
revno: 14
committer: David Brown <dmlb2000@dmlb2004>
branch nick: stage-root
timestamp: Wed 2006-04-12 11:57:17 -0700
message:
moved the making of the current config stage directory so it will be made no
matter what

also did some formating of the main install_staged_spell function

also removed the touching of the config file this makes sorcery think the
file
is getting installed by the spell and then removes the modified config next
cast
and that's a bad thing... :*(

=== modified file 'var/lib/sorcery/modules/libstage'
--- var/lib/sorcery/modules/libstage
+++ var/lib/sorcery/modules/libstage
@@ -12,8 +12,9 @@
#---------------------------------------------------------------------
function install_staged_spell()
{
- stage_install_configs
- stage_install_rest
+ mkdir -p "$CONFIG_STAGE_DIRECTORY/$SPELL/current"
+ stage_install_configs
+ stage_install_rest
}

function filter_spell_configs()
@@ -90,14 +91,12 @@
local FILE=$1
local PERMISSION=$(stat -c %a "${STAGE_DIRECTORY}/TRANSL/$FILE")
local SAVE="$CONFIG_STAGE_DIRECTORY/$SPELL/current/$FILE"
- mkdir -p "$CONFIG_STAGE_DIRECTORY/$SPELL/current"
message "${FILE_COLOR}$PERMISSION $FILE${DEFAULT_COLOR}"
case $2 in
config)
if [[ -e ${INSTALL_ROOT}/$FILE ]]
then
message "${MESSAGE_COLOR}Staging config to
$CONFIG_STAGE_DIRECTORY${DEFAULT_COLOR}"
- touch ${INSTALL_ROOT}/$FILE &&
mkdir -p $(dirname $SAVE) &&
cp -dp $STAGE_DIRECTORY/TRANSL/$FILE ${INSTALL_ROOT}/$SAVE &&
rm $STAGE_DIRECTORY/TRANSL/$FILE




  • [SM-Commit] BZR Change 14 to stage-root sorcery by David Brown <dmlb2000@dmlb2004>, bzr, 04/12/2006

Archive powered by MHonArc 2.6.24.

Top of Page