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

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 29 16:16:30 PDT 2007


Revision: 23362
          http://trac.macosforge.org/projects/macports/changeset/23362
Author:   jberry at macports.org
Date:     2007-03-29 16:16:29 -0700 (Thu, 29 Mar 2007)

Log Message:
-----------
Fix setting of environment in command.

When the special variable 'env' is unset, tcl loses track of its connection to the environment, and subsequent changes to the environment do not stick. So instead of unsetting the env array, just remove all values from it.

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

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2007-03-29 19:35:18 UTC (rev 23361)
+++ trunk/base/src/port1.0/portutil.tcl	2007-03-29 23:16:29 UTC (rev 23362)
@@ -285,8 +285,9 @@
 	}
 	# Unset the command array until next time.
 	array unset ${command}.env_array
+	
 	# Restore the environment.
-	array unset env
+	array unset env *
 	array set env [array get saved_env]
 
 	# Return as if system had been called directly.	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070329/3a8edf8a/attachment.html


More information about the macports-changes mailing list