[93342] trunk/dports/devel/macstl/Portfile
jmr at macports.org
jmr at macports.org
Sun May 20 10:14:37 PDT 2012
Revision: 93342
https://trac.macports.org/changeset/93342
Author: jmr at macports.org
Date: 2012-05-20 10:14:36 -0700 (Sun, 20 May 2012)
Log Message:
-----------
macstl: don't fail to parse if executing machine(1) fails
Modified Paths:
--------------
trunk/dports/devel/macstl/Portfile
Modified: trunk/dports/devel/macstl/Portfile
===================================================================
--- trunk/dports/devel/macstl/Portfile 2012-05-20 17:10:24 UTC (rev 93341)
+++ trunk/dports/devel/macstl/Portfile 2012-05-20 17:14:36 UTC (rev 93342)
@@ -34,8 +34,8 @@
use_configure yes
configure {}
-if {! [variant_isset universal]} {
- if {[regexp {ppc(7[45]|95)} [exec machine] _ number]} {
+if {![variant_isset universal] && ![catch {exec machine} machine]} {
+ if {[regexp {ppc(7[45]|95)} $machine _ number]} {
switch [string index ${number} 0] {
7 { set model G4 }
9 { set model G5 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120520/1e760574/attachment.html>
More information about the macports-changes
mailing list