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

blb at macports.org blb at macports.org
Thu Feb 19 23:52:17 PST 2009


Revision: 47034
          http://trac.macports.org/changeset/47034
Author:   blb at macports.org
Date:     2009-02-19 23:52:17 -0800 (Thu, 19 Feb 2009)
Log Message:
-----------
macports1.0/macports.tcl - trim whitespace from option values when setting
so errant whitespace at the end of the line doesn't muck things up;
ticket #18460

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

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2009-02-20 07:51:59 UTC (rev 47033)
+++ trunk/base/src/macports1.0/macports.tcl	2009-02-20 07:52:17 UTC (rev 47034)
@@ -382,7 +382,7 @@
             while {[gets $fd line] >= 0} {
                 if {[regexp {^(\w+)([ \t]+(.*))?$} $line match option ignore val] == 1} {
                     if {[lsearch $bootstrap_options $option] >= 0} {
-                        set macports::$option $val
+                        set macports::$option [string trim $val]
                         global macports::$option
                     }
                 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090219/1c6ccc4c/attachment.html>


More information about the macports-changes mailing list