Ignore:
Timestamp:
Feb 10, 2014, 10:29:46 PM (5 years ago)
Author:
jmr@…
Message:

python portgroup: string comparison operators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/python-1.0.tcl

    r105101 r116941  
    8888
    8989proc python_set_versions {option action args} {
    90     if {$action != "set"} {
     90    if {$action ne "set"} {
    9191        return
    9292    }
     
    9696            subport py${v}[string trimleft $name py] { depends_lib port:python${v} }
    9797        }
    98         if {$subport == $name || $subport == ""} {
     98        if {$subport eq $name || $subport eq ""} {
    9999            # set up py-foo as a stub port that depends on the default pyXY-foo
    100100            fetch {}
     
    140140            if {${python.set_compiler}} {
    141141                foreach var {cc objc cxx fc f77 f90} {
    142                     if {[set configure.${var}] != ""} {
     142                    if {[set configure.${var}] ne ""} {
    143143                        build.env-append [string toupper $var]="[set configure.${var}]"
    144144                    }
     
    167167option_proc python.default_version python_set_default_version
    168168proc python_set_default_version {option action args} {
    169     if {$action != "set"} {
     169    if {$action ne "set"} {
    170170        return
    171171    }
    172172    global name subport python.default_version
    173173    if {[string match py-* $name]} {
    174         if {$subport == $name || $subport == ""} {
     174        if {$subport eq $name || $subport eq ""} {
    175175            # Mark stub as replaced_by py24 subport if that's the
    176176            # default version, for backwards compatibility.  If the
Note: See TracChangeset for help on using the changeset viewer.