[91011] trunk/base/src/macports1.0/macports.tcl
jmr at macports.org
jmr at macports.org
Wed Mar 21 10:22:23 PDT 2012
Revision: 91011
https://trac.macports.org/changeset/91011
Author: jmr at macports.org
Date: 2012-03-21 10:22:22 -0700 (Wed, 21 Mar 2012)
Log Message:
-----------
use exact search to match config options (default is glob)
Modified Paths:
--------------
trunk/base/src/macports1.0/macports.tcl
Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl 2012-03-21 15:44:17 UTC (rev 91010)
+++ trunk/base/src/macports1.0/macports.tcl 2012-03-21 17:22:22 UTC (rev 91011)
@@ -636,7 +636,7 @@
set fd [open $file r]
while {[gets $fd line] >= 0} {
if {[regexp {^(\w+)([ \t]+(.*))?$} $line match option ignore val] == 1} {
- if {[lsearch $bootstrap_options $option] >= 0} {
+ if {[lsearch -exact $bootstrap_options $option] >= 0} {
set macports::$option [string trim $val]
global macports::$option
}
@@ -652,7 +652,7 @@
set fd [open $per_user r]
while {[gets $fd line] >= 0} {
if {[regexp {^(\w+)([ \t]+(.*))?$} $line match option ignore val] == 1} {
- if {[lsearch $user_options $option] >= 0} {
+ if {[lsearch -exact $user_options $option] >= 0} {
set macports::$option $val
global macports::$option
}
@@ -2048,7 +2048,7 @@
}
}
if {[llength $missing] > 0} {
- if {[info exists dep_portinfo(variants)] && [lsearch $dep_portinfo(variants) universal] != -1} {
+ if {[info exists dep_portinfo(variants)] && [lsearch -exact $dep_portinfo(variants) universal] != -1} {
# dep offers a universal variant
if {[llength $active_archs] == 1} {
# not installed universal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120321/44cda94c/attachment-0001.html>
More information about the macports-changes
mailing list