[47346] trunk/base/src/port1.0/portlint.tcl

raimue at macports.org raimue at macports.org
Thu Feb 26 03:25:25 PST 2009


Revision: 47346
          http://trac.macports.org/changeset/47346
Author:   raimue at macports.org
Date:     2009-02-26 03:25:25 -0800 (Thu, 26 Feb 2009)
Log Message:
-----------
port1.0/portlint.tcl:
Check if conflicting variants actually exist

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-02-26 11:13:43 UTC (rev 47345)
+++ trunk/base/src/port1.0/portlint.tcl	2009-02-26 11:25:25 UTC (rev 47346)
@@ -436,6 +436,21 @@
                 }
             }
 
+            # Check if conflicting variants actually exist
+            foreach vconflict [ditem_key $variant conflicts] {
+                set exists 0
+                foreach v $all_variants {
+                    if {$vconflict == [ditem_key $v name]} {
+                        set exists 1
+                        break
+                    }
+                }
+                if {!$exists} {
+                    ui_warn "Variant $variantname conflicts with non-existing variant $vconflict"
+                    incr warnings
+                }
+            }
+
             if {$name_ok} {
                 if {$desc_ok} {
                     ui_info "OK: Found variant $variantname: $variantdesc"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090226/92fe4292/attachment.html>


More information about the macports-changes mailing list