[59101] trunk/dports/_resources/port1.0/group/archcheck-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Fri Oct 9 14:30:11 PDT 2009


Revision: 59101
          http://trac.macports.org/changeset/59101
Author:   ryandesign at macports.org
Date:     2009-10-09 14:30:07 -0700 (Fri, 09 Oct 2009)
Log Message:
-----------
archcheck-1.0.tcl: Provide a hint advising the user to use the universal variant when it seems that is the likely fix.

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

Modified: trunk/dports/_resources/port1.0/group/archcheck-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/archcheck-1.0.tcl	2009-10-09 21:23:30 UTC (rev 59100)
+++ trunk/dports/_resources/port1.0/group/archcheck-1.0.tcl	2009-10-09 21:30:07 UTC (rev 59101)
@@ -63,6 +63,9 @@
             if {-1 == [string first " ${requested_arch} " " ${file_archs} "]} {
                 ui_error "You cannot install ${name} for the architecture(s) ${requested_archs}"
                 ui_error "because ${file} only contains the architecture(s) ${file_archs}."
+                if {[variant_exists universal] && [variant_isset universal] && 1 == [llength ${file_archs}]} {
+                    ui_error "Try reinstalling the port that provides ${file} with the +universal variant."
+                }
                 return -code error "incompatible architectures in dependencies"
             }
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091009/ac36f07c/attachment.html>


More information about the macports-changes mailing list