Revision: 81540 http://trac.macports.org/changeset/81540 Author: jmr@macports.org Date: 2011-08-01 06:12:18 -0700 (Mon, 01 Aug 2011) Log Message: ----------- accept 'buildfromsource' setting in macports.conf, to allow permanently selecting the behaviour of the -s or -b option Modified Paths: -------------- trunk/base/src/macports1.0/macports.tcl Modified: trunk/base/src/macports1.0/macports.tcl =================================================================== --- trunk/base/src/macports1.0/macports.tcl 2011-08-01 12:46:32 UTC (rev 81539) +++ trunk/base/src/macports1.0/macports.tcl 2011-08-01 13:12:18 UTC (rev 81540) @@ -686,6 +686,18 @@ set macports::porttrace $macports::global_options(ports_trace) } } + # Check command line override for source/binary only mode + if {![info exists macports::global_options(ports_binary_only)] + && ![info exists macports::global_options(ports_source_only)] + && [info exists macports::buildfromsource]} { + if {${macports::buildfromsource} == "never"} { + set macports::global_options(ports_binary_only) yes + } elseif {${macports::buildfromsource} == "always"} { + set macports::global_options(ports_source_only) yes + } elseif {${macports::buildfromsource} != "ifneeded"} { + ui_warn "'buildfromsource' set to unknown value '${macports::buildfromsource}', using 'ifneeded' instead" + } + } # Duplicate prefix into prefix_frozen, so that port actions # can always get to the original prefix, even if a portfile overrides prefix
participants (1)
-
jmr@macports.org