[93348] trunk/dports/security/ophcrack/Portfile

jmr at macports.org jmr at macports.org
Sun May 20 10:31:03 PDT 2012


Revision: 93348
          https://trac.macports.org/changeset/93348
Author:   jmr at macports.org
Date:     2012-05-20 10:31:03 -0700 (Sun, 20 May 2012)
Log Message:
-----------
ophcrack: don't fail to parse if sysctl fails

Modified Paths:
--------------
    trunk/dports/security/ophcrack/Portfile

Modified: trunk/dports/security/ophcrack/Portfile
===================================================================
--- trunk/dports/security/ophcrack/Portfile	2012-05-20 17:28:30 UTC (rev 93347)
+++ trunk/dports/security/ophcrack/Portfile	2012-05-20 17:31:03 UTC (rev 93348)
@@ -23,7 +23,8 @@
 
 configure.args      --disable-gui --disable-graph
 
-set hasMoreThan512MBofRAM [expr [gets [open "|sysctl -n hw.memsize"]] >= 536870912]
+set hasMoreThan512MBofRAM 0
+catch {set hasMoreThan512MBofRAM [expr [sysctl hw.memsize] >= 536870912]}
 
 post-extract {
     if {[variant_isset tables]} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120520/045b9de5/attachment.html>


More information about the macports-changes mailing list