Ignore:
Timestamp:
Mar 8, 2012, 4:31:40 AM (8 years ago)
Author:
dports@…
Message:

python portgroup: make sure we've set replaced_by before trying to
unset it in python_set_default_version. See
http://lists.macosforge.org/pipermail/macports-dev/2012-March/018087.html

File:
1 edited

Legend:

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

    r89024 r90517  
    149149    if {[string match py-* $name]} {
    150150        if {$subport == $name || $subport == ""} {
    151             if {${python.default_version} == "24"} {
    152                 replaced_by py24[string trimleft $name py]
    153             } else {
     151            # Mark stub as replaced_by py24 subport if that's the
     152            # default version, for backwards compatibility.  If the
     153            # default version isn't 24, clear replaced_by -- it might
     154            # have already been set by python_set_versions. (But make
     155            # sure we've set it first, or unset might complain.)
     156            replaced_by py24[string trimleft $name py]
     157            if {${python.default_version} != "24"} {
    154158                global replaced_by
    155                 unset -nocomplain replaced_by
     159                unset replaced_by
    156160            }
    157161            depends_lib port:py${python.default_version}[string trimleft $name py]
Note: See TracChangeset for help on using the changeset viewer.