Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (d21d89ccd570bb26403264847ecc3b67e8d5d434)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (d21d89ccd570bb26403264847ecc3b67e8d5d434)
  • Date: Tue, 9 Sep 2008 16:49:27 -0500

GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

ChangeLog | 1 +
var/lib/sorcery/modules/libcast | 9 +++++++++
2 files changed, 10 insertions(+)

New commits:
commit d21d89ccd570bb26403264847ecc3b67e8d5d434
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

libcast: uniq the compile log before copying in create_compile_log

example with my plethora of wine logs:
508091
392282

So it will save a bit of space too. :)

diff --git a/ChangeLog b/ChangeLog
index 3334be3..e55a617 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
made resurrect_spell accept an optional cache parameter
* resurrect: added support for resurrecting from caches directly
* resurrect: mention the new feature
+ * libcast: uniq the compile log before copying in create_compile_log

2008-09-08 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* dispel: moved the downgrade code into a separate tool
diff --git a/var/lib/sorcery/modules/libcast b/var/lib/sorcery/modules/libcast
index fff5efc..bee7caa 100755
--- a/var/lib/sorcery/modules/libcast
+++ b/var/lib/sorcery/modules/libcast
@@ -629,6 +629,7 @@ function acquire_cast_lock() {
## our compile log directory.
#---------------------------------------------------------------------
function create_compile_log() {
+ local tmp_log=$C_LOG.2

message "${MESSAGE_COLOR}Creating compile log" \
"${FILE_COLOR}$COMPILE_LOGS/$SPELL-$VERSION$EXTENSION" \
@@ -637,11 +638,19 @@ function create_compile_log() {
echo "---config.log---" >> $C_LOG
cat $SOURCE_DIRECTORY/config.log >> $C_LOG
fi
+
+ # remove any nplicated lines (happens due to all the redirection we do)
+ uniq $C_LOG > $tmp_log
+ mv $tmp_log $C_LOG
+
+ # install the compile log
if [ -z "$EXTENSION" ]; then
cp $C_LOG $COMPILE_LOGS/$SPELL-$VERSION
else
$COMPRESSBIN -f < $C_LOG > $COMPILE_LOGS/$SPELL-$VERSION$EXTENSION
fi
+
+ # install the castfs log
if [[ $STAGED_INSTALL == on ]] ; then
message "${MESSAGE_COLOR}Creating castfs debug log" \

"${FILE_COLOR}$COMPILE_LOGS/$SPELL-$VERSION.castfs.dbglog$EXTENSION" \



  • [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (d21d89ccd570bb26403264847ecc3b67e8d5d434), Jaka Kranjc, 09/09/2008

Archive powered by MHonArc 2.6.24.

Top of Page