[142662] trunk/dports/_resources/port1.0/group/mpi-1.0.tcl

dstrubbe at macports.org dstrubbe at macports.org
Sat Dec 12 06:42:21 PST 2015


Revision: 142662
          https://trac.macports.org/changeset/142662
Author:   dstrubbe at macports.org
Date:     2015-11-18 23:21:14 -0800 (Wed, 18 Nov 2015)
Log Message:
-----------
mpi portgroup: warning and error for when active_variants fails; a debug message for mpi.enforce_variants.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/mpi-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/mpi-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/mpi-1.0.tcl	2015-11-19 03:33:39 UTC (rev 142661)
+++ trunk/dports/_resources/port1.0/group/mpi-1.0.tcl	2015-11-19 07:21:14 UTC (rev 142662)
@@ -163,7 +163,7 @@
                 return $m
             }
         } else {
-            # warning or error!
+            ui_warn "mpi_active_variant_name: [active_variants $depspec $m \"\"] fails."
         }
     }
 
@@ -190,6 +190,7 @@
 
 proc mpi.action_enforce_variants {args} {
     global name
+    ui_debug "mpi.enforce_variant list: ${args}"
     foreach portname $args {
         if {![catch {set result [active_variants $portname "" ""]}]} {
             set otmpi  [mpi_active_variant_name $portname]
@@ -208,7 +209,7 @@
 
             eval compilers.action_enforce_c $portname
         } else {
-            # warning or error!
+            ui_error "Internal error: '$portname' is not an installed port."
         }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/3493c72f/attachment.html>


More information about the macports-changes mailing list