[44339] trunk/base/src/port/port.tcl

gwhitney at macports.org gwhitney at macports.org
Fri Dec 26 09:40:40 PST 2008


Revision: 44339
          http://trac.macports.org/changeset/44339
Author:   gwhitney at macports.org
Date:     2008-12-26 09:40:40 -0800 (Fri, 26 Dec 2008)
Log Message:
-----------
Properly reset global_options to global_options_base prior to each action

This modification fixes a bug in which options specified for the first
of several actions would "leak through" to the subsequent actions.
For example, prior to this fix:
  > port info --variants emacs \; info --homepage pango
  variants: darwin_7, x11, motif, gtk, carbon, atsui, universal
  homepage: http://www.pango.org/
  variants: no_x11, universal
  >
And after this fix:
  > port info --variants emacs \; info --homepage pango
  variants: darwin_7, x11, motif, gtk, carbon, atsui, universal
  homepage: http://www.pango.org/
  >

Modified Paths:
--------------
    trunk/base/src/port/port.tcl

Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl	2008-12-26 15:52:20 UTC (rev 44338)
+++ trunk/base/src/port/port.tcl	2008-12-26 17:40:40 UTC (rev 44339)
@@ -2994,6 +2994,7 @@
         cd $current_portdir
         
         # Reset global_options from base before each action, as we munge it just below...
+        array unset global_options
         array set global_options $global_options_base
         
         # Find an action to execute
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081226/b1a9f034/attachment.html>


More information about the macports-changes mailing list