[59801] trunk/base/src/port1.0/portutil.tcl

jmr at macports.org jmr at macports.org
Thu Oct 22 13:26:59 PDT 2009


Revision: 59801
          http://trac.macports.org/changeset/59801
Author:   jmr at macports.org
Date:     2009-10-22 13:26:56 -0700 (Thu, 22 Oct 2009)
Log Message:
-----------
warn when using +universal on ports with no universal variant (can move the check somewhere else if it ends up being too chatty)

Modified Paths:
--------------
    trunk/base/src/port1.0/portutil.tcl

Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl	2009-10-22 20:05:20 UTC (rev 59800)
+++ trunk/base/src/port1.0/portutil.tcl	2009-10-22 20:26:56 UTC (rev 59801)
@@ -1836,6 +1836,10 @@
         ui_debug "adding the default universal variant"
         variant universal {}
     }
+    
+    if {[variant_isset universal] && ![variant_exists universal]} {
+        ui_warn "[option name] has no universal variant"
+    }
 }
 
 # Target class definition.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091022/57881d46/attachment.html>


More information about the macports-changes mailing list