[116941] trunk/dports/_resources/port1.0/group/python-1.0.tcl

jmr at macports.org jmr at macports.org
Mon Feb 10 14:29:46 PST 2014


Revision: 116941
          https://trac.macports.org/changeset/116941
Author:   jmr at macports.org
Date:     2014-02-10 14:29:46 -0800 (Mon, 10 Feb 2014)
Log Message:
-----------
python portgroup: string comparison operators

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/python-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/python-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/python-1.0.tcl	2014-02-10 21:31:29 UTC (rev 116940)
+++ trunk/dports/_resources/port1.0/group/python-1.0.tcl	2014-02-10 22:29:46 UTC (rev 116941)
@@ -87,7 +87,7 @@
 }
 
 proc python_set_versions {option action args} {
-    if {$action != "set"} {
+    if {$action ne "set"} {
         return
     }
     global name subport python._addedcode
@@ -95,7 +95,7 @@
         foreach v [option $option] {
             subport py${v}[string trimleft $name py] { depends_lib port:python${v} }
         }
-        if {$subport == $name || $subport == ""} {
+        if {$subport eq $name || $subport eq ""} {
             # set up py-foo as a stub port that depends on the default pyXY-foo
             fetch {}
             checksum {}
@@ -139,7 +139,7 @@
             }
             if {${python.set_compiler}} {
                 foreach var {cc objc cxx fc f77 f90} {
-                    if {[set configure.${var}] != ""} {
+                    if {[set configure.${var}] ne ""} {
                         build.env-append [string toupper $var]="[set configure.${var}]"
                     }
                 }
@@ -166,12 +166,12 @@
 
 option_proc python.default_version python_set_default_version
 proc python_set_default_version {option action args} {
-    if {$action != "set"} {
+    if {$action ne "set"} {
         return
     }
     global name subport python.default_version
     if {[string match py-* $name]} {
-        if {$subport == $name || $subport == ""} {
+        if {$subport eq $name || $subport eq ""} {
             # Mark stub as replaced_by py24 subport if that's the
             # default version, for backwards compatibility.  If the
             # default version isn't 24, clear replaced_by -- it might
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140210/29a20871/attachment.html>


More information about the macports-changes mailing list