[MacPorts] #19559: variant variables not carried through to post-destroot
MacPorts
noreply at macports.org
Sun Aug 9 00:23:59 PDT 2009
#19559: variant variables not carried through to post-destroot
----------------------------------+-----------------------------------------
Reporter: dweber@… | Owner: macports-tickets@…
Type: enhancement | Status: closed
Priority: Low | Milestone: MacPorts Future
Component: base | Version: 1.7.1
Resolution: invalid | Keywords: variant variables
Port: |
----------------------------------+-----------------------------------------
Changes (by jmr@…):
* status: new => closed
* resolution: => invalid
Comment:
Variant bodies are run as procedures. Just using 'set' will create a local
variable. Use 'global', or the 'options' infrastructure:
{{{
variant foo {
options myoption1 myoption1
myoption1 bar
myoption2 baz
post-destroot {
ui_msg "my options are $myoption1 and $myoption2"
}
}
}}}
--
Ticket URL: <http://trac.macports.org/ticket/19559#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list