[SM-Commit] BZR Change 18 to stage-root sorcery by David Brown <dmlb2000 at dmlb2004>

bzr at mail.sourcemage.org bzr at mail.sourcemage.org
Thu Apr 13 01:35:04 EDT 2006


------------------------------------------------------------
revno: 18
committer: David Brown <dmlb2000 at dmlb2004>
branch nick: stage-root
timestamp: Wed 2006-04-12 22:29:40 -0700
message:
  forgot about checking staged install for moving the staged configs to the success date directory

=== modified file 'var/lib/sorcery/modules/build_api/common'
--- var/lib/sorcery/modules/build_api/common	
+++ var/lib/sorcery/modules/build_api/common	
@@ -254,8 +254,11 @@
                "${FILE_COLOR}${tablet_dir}${DEFAULT_COLOR}"
       tablet_install_spell_files $tablet_dir
       local TABLET_SPELL_DIR=$tablet_dir
-      mv $CONFIG_STAGE_DIRECTORY/$SPELL/current \
-         $CONFIG_STAGE_DIRECTORY/$SPELL/$(basename $tablet_dir)
+      if [[ $STAGED_INSTALL != "off" ]]
+      then
+        mv $CONFIG_STAGE_DIRECTORY/$SPELL/current \
+           $CONFIG_STAGE_DIRECTORY/$SPELL/$(basename $tablet_dir)
+      fi
       # this data is now doubly stale, remove it
       rm  -f $ABANDONED_PERSIST/$SPELL.p
     fi




More information about the SM-Commit mailing list