Hi David,
----- On 15 Oct, 2015, at 21:21, David Strubbe [email protected] wrote:
> Do you have a suggestion of how to accomplish that? That could potentially be
> a
> simpler approach than adding include guards.
PortGroup is a function defined in base/src/port1.0/portutil.tcl, line 2563. It
could use a list that tracks which portgroup files have been included and avoid
including them twice.
Something like:
global _portgroups_included
if {![info exists _portgroups_included]} {
set _portgroups_included [list]
}
and then instead of
uplevel "source $groupFile"
use something like
if {$groupFile ni $_portgroups_included} {
lappend _portgroups_included $groupFile
uplevel "source $groupFile"
} else {
ui_warn "PortGroup ${group} ${version} already included, skipping repeated
include."
}
--
Clemens Lang
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev