[55116] trunk/base/src/port1.0/portlint.tcl
raimue at macports.org
raimue at macports.org
Thu Aug 6 17:08:30 PDT 2009
Revision: 55116
http://trac.macports.org/changeset/55116
Author: raimue at macports.org
Date: 2009-08-06 17:08:27 -0700 (Thu, 06 Aug 2009)
Log Message:
-----------
port1.0/portlint.tcl:
Warn on multiple occurrences of the same depspec
Modified Paths:
--------------
trunk/base/src/port1.0/portlint.tcl
Modified: trunk/base/src/port1.0/portlint.tcl
===================================================================
--- trunk/base/src/port1.0/portlint.tcl 2009-08-06 23:53:30 UTC (rev 55115)
+++ trunk/base/src/port1.0/portlint.tcl 2009-08-07 00:08:27 UTC (rev 55116)
@@ -447,6 +447,22 @@
}
}
+ # Check for multiple dependencies
+ foreach deptype {depends_extract depends_lib depends_build depends_run} {
+ if {[info exists $deptype]} {
+ array set depwarned {}
+ foreach depspec [set $deptype] {
+ if {![info exists depwarned($depspec)]
+ && [llength [lsearch -exact -all [set $deptype] $depspec]] > 1} {
+ ui_warn "Dependency $depspec specified multiple times in $deptype"
+ incr warnings
+ # Report each depspec only once
+ set depwarned($depspec) yes
+ }
+ }
+ }
+ }
+
if {[regexp "^(.+)nomaintainer(@macports.org)?(.+)$" $maintainers] } {
ui_error "Using nomaintainer together with other maintainer"
incr errors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090806/fb0cac07/attachment.html>
More information about the macports-changes
mailing list