Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] BZR Change 17 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 17 to stage-root sorcery by David Brown <dmlb2000@dmlb2004>
  • Date: Wed, 12 Apr 2006 16:25:07 -0500

------------------------------------------------------------
revno: 17
committer: David Brown <dmlb2000@dmlb2004>
branch nick: stage-root
timestamp: Wed 2006-04-12 14:21:55 -0700
message:
final commit of confmeld so it can be audited now

=== modified file 'usr/sbin/confmeld'
--- usr/sbin/confmeld
+++ usr/sbin/confmeld
@@ -93,34 +93,32 @@
local last_spell=""
local last_sdate=""

- all_config_files |
- while read file
+ for file in `all_config_files`
do
- echo $last_spell
parse_stage_config_path $file spell sdate target &&
if [[ -f $file && $target ]]
then
message "${MESSAGE_COLOR}$spell cast on $sdate has
config${DEFAULT_COLOR}"
message "${MESSAGE_COLOR}$file to be merged with
/$target${DEFAULT_COLOR}"
tablet_set_spell $spell &&
- # and we can't do this because it's reading stdin from the pipe so I
have
- # to think of something else
install_config_file $file /$target
if [[ $last_sdate && $last_sdate != $sdate ]]
then
+ message "${MESSAGE_COLOR}Removing dirs and files in config stage
area.${DEFAULT_COLOR}"
rm -vrf $CONFIG_STAGE_DIRECTORY/$last_spell/$last_sdate
fi
if [[ $last_spell && $last_spell != $spell ]]
then
+ message "${MESSAGE_COLOR}Removing dirs and files in config stage
area.${DEFAULT_COLOR}"
rm -vrf $CONFIG_STAGE_DIRECTORY/$last_spell
fi
last_sdate="$sdate"
last_spell="$spell"
fi
done
- # this isn't being set for some reason
if [[ $last_spell ]]
then
+ message "${MESSAGE_COLOR}Removing dirs and files in config stage
area.${DEFAULT_COLOR}"
rm -vrf $CONFIG_STAGE_DIRECTORY/$last_spell
fi
}




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

Archive powered by MHonArc 2.6.24.

Top of Page