[81540] trunk/base/src/macports1.0/macports.tcl
jmr at macports.org
jmr at macports.org
Mon Aug 1 06:12:20 PDT 2011
Revision: 81540
http://trac.macports.org/changeset/81540
Author: jmr at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110801/e5470034/attachment.html>
More information about the macports-changes
mailing list