[146737] trunk/base/src/macports1.0/macports.tcl

jmr at macports.org jmr at macports.org
Wed Mar 16 07:38:38 PDT 2016


Revision: 146737
          https://trac.macports.org/changeset/146737
Author:   jmr at macports.org
Date:     2016-03-16 07:38:38 -0700 (Wed, 16 Mar 2016)
Log Message:
-----------
append to main.log instead of truncating each time it is opened (it will still be removed when cleaning)

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2016-03-16 14:25:12 UTC (rev 146736)
+++ trunk/base/src/macports1.0/macports.tcl	2016-03-16 14:38:38 UTC (rev 146737)
@@ -154,8 +154,8 @@
 
     set ::debuglogname $logname
 
-    # Truncate the file if already exists
-    set ::debuglog [open $::debuglogname w]
+    # Append to the file if it already exists
+    set ::debuglog [open $::debuglogname a]
     puts $::debuglog version:1
 }
 proc macports::push_log {mport} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160316/8b1f4bd6/attachment.html>


More information about the macports-changes mailing list