Modified: trunk/base/src/macports1.0/macports.tcl (81539 => 81540)
--- 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