[57998] trunk/base/src/port1.0/portbuild.tcl

afb at macports.org afb at macports.org
Sun Sep 20 09:22:03 PDT 2009


Revision: 57998
          http://trac.macports.org/changeset/57998
Author:   afb at macports.org
Date:     2009-09-20 09:21:59 -0700 (Sun, 20 Sep 2009)
Log Message:
-----------
don't use -j1, check param syntax (breakage from r52390)

Revision Links:
--------------
    http://trac.macports.org/changeset/52390

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

Modified: trunk/base/src/port1.0/portbuild.tcl
===================================================================
--- trunk/base/src/port1.0/portbuild.tcl	2009-09-20 16:09:11 UTC (rev 57997)
+++ trunk/base/src/port1.0/portbuild.tcl	2009-09-20 16:21:59 UTC (rev 57998)
@@ -145,7 +145,11 @@
     if {![exists build.jobs] || !([string match "*make*" [option build.cmd]] || [string match "*scons*" [option build.cmd]])} {
         return ""
     }
-    return " -j[option build.jobs]"
+    set jobs [option build.jobs]
+    if {![string is integer -strict $jobs] || $jobs <= 1} {
+        return ""
+    }
+    return " -j$jobs"
 }
 
 proc portbuild::build_start {args} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090920/28116f23/attachment-0001.html>


More information about the macports-changes mailing list