[149154] trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
dstrubbe at macports.org
dstrubbe at macports.org
Thu Jun 2 11:45:53 PDT 2016
Revision: 149154
https://trac.macports.org/changeset/149154
Author: dstrubbe at macports.org
Date: 2016-06-02 11:45:53 -0700 (Thu, 02 Jun 2016)
Log Message:
-----------
compilers portgroup: Warn if compilers.choose is set after compilers.setup.
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/compilers-1.0.tcl 2016-06-02 18:40:35 UTC (rev 149153)
+++ trunk/dports/_resources/port1.0/group/compilers-1.0.tcl 2016-06-02 18:45:53 UTC (rev 149154)
@@ -480,8 +480,12 @@
}
proc compilers.choose {args} {
- global compilers.list
+ global compilers.list compilers.setup_done
+ if {${compilers.setup_done}} {
+ ui_warn "compilers.choose has an effect only before compilers.setup."
+ }
+
# zero out the variable before and append args
set compilers.list {}
foreach v $args {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160602/90a835db/attachment.html>
More information about the macports-changes
mailing list