[26223] trunk/base/src/port1.0/tests/portutil.tcl

source_changes at macosforge.org source_changes at macosforge.org
Sat Jun 16 02:11:51 PDT 2007


Revision: 26223
          http://trac.macosforge.org/projects/macports/changeset/26223
Author:   eridius at macports.org
Date:     2007-06-16 02:11:51 -0700 (Sat, 16 Jun 2007)

Log Message:
-----------
Fix portutil test file to work when executed from external directories

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

Modified: trunk/base/src/port1.0/tests/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/tests/portutil.tcl	2007-06-16 09:02:07 UTC (rev 26222)
+++ trunk/base/src/port1.0/tests/portutil.tcl	2007-06-16 09:11:51 UTC (rev 26223)
@@ -68,9 +68,10 @@
     # so we shall oblige
     set workername [interp create]
     macports::worker_init $workername {} [macports::getportbuildpath {}] {} {}
+    $workername alias scriptname info script
     set body {
         # load the current copy of portutil instead of the installed one
-        source [file dirname [info script]]/../portutil.tcl
+        source [file dirname [scriptname]]/../portutil.tcl
         package require port
         
         depends_lib port:foo port:bar port:blah

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070616/295a55d3/attachment.html


More information about the macports-changes mailing list