#32840: python portgroup: strange results from python_get_version --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: invalid | Keywords: Port: python | --------------------------------------+------------------------------------- Comment(by ryandesign@…): Then how about explaining to the portfile author what they've done wrong? {{{ --- python-1.0.tcl (revision 88867) +++ python-1.0.tcl (working copy) @@ -65,6 +65,10 @@ proc python_get_version {} { if {[string match py-* [option name]]} { + if {[option name] == [option subport]} { + ui_error "do not access python_get_version in a stub port" + return -code error "incorrect use of python_get_version" + } return [string range [option subport] 2 3] } else { return [option python.default_version] }}} -- Ticket URL: <https://trac.macports.org/ticket/32840#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS