[110021] trunk/base/src/port1.0/portutil.tcl

cal at macports.org cal at macports.org
Sat Aug 24 12:38:25 PDT 2013


Revision: 110021
          https://trac.macports.org/changeset/110021
Author:   cal at macports.org
Date:     2013-08-24 12:38:25 -0700 (Sat, 24 Aug 2013)
Log Message:
-----------
port1.0: prevent failures in trace mode when "." is not stat(2)able.

Modified Paths:
--------------
    trunk/base/src/port1.0/portutil.tcl

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2013-08-24 18:24:59 UTC (rev 110020)
+++ trunk/base/src/port1.0/portutil.tcl	2013-08-24 19:38:25 UTC (rev 110021)
@@ -1353,6 +1353,11 @@
 
             # otherwise execute the task.
             if {$skipped == 0} {
+                # cd somewhere readable in tracemode to avoid error, e.g. with
+                # find. Make sure to use a path that also exists when executing
+                # Portfiles from registry, i.e., _not_ $workpath.
+                set oldpwd [pwd]
+                _cd $portdbpath
                 # change current phase shown in log
                 set_phase $target
 
@@ -1496,6 +1501,7 @@
                     # End of trace.
                     porttrace::trace_stop
                 }
+                _cd $oldpwd
             }
         }
         if {[exists copy_log_files]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130824/d5756e07/attachment.html>


More information about the macports-changes mailing list