[67272] trunk/base/src

jmr at macports.org jmr at macports.org
Mon May 3 19:01:27 PDT 2010


Revision: 67272
          http://trac.macports.org/changeset/67272
Author:   jmr at macports.org
Date:     2010-05-03 19:01:25 -0700 (Mon, 03 May 2010)
Log Message:
-----------
ignore stderr when extracting information from xcode

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl
    trunk/base/src/port1.0/portmain.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2010-05-04 01:14:50 UTC (rev 67271)
+++ trunk/base/src/macports1.0/macports.tcl	2010-05-04 02:01:25 UTC (rev 67272)
@@ -361,7 +361,7 @@
         if {![info exists xcodeversion]} {
             # Determine xcode version
             set macports::xcodeversion "2.0orlower"
-            if {[catch {set xcodebuildversion [exec $xcodebuild -version]}] == 0} {
+            if {[catch {set xcodebuildversion [exec -- $xcodebuild -version 2> /dev/null]}] == 0} {
                 if {[regexp {Xcode ([0-9.]+)} $xcodebuildversion - xcode_v] == 1} {
                     set macports::xcodeversion $xcode_v
                 } elseif {[regexp "DevToolsCore-(.*);" $xcodebuildversion - devtoolscore_v] == 1} {

Modified: trunk/base/src/port1.0/portmain.tcl
===================================================================
--- trunk/base/src/port1.0/portmain.tcl	2010-05-04 01:14:50 UTC (rev 67271)
+++ trunk/base/src/port1.0/portmain.tcl	2010-05-04 02:01:25 UTC (rev 67272)
@@ -122,7 +122,7 @@
 
 proc portmain::get_developer_dir {} {
     if {![catch {binaryInPath xcode-select}]} {
-        return [exec xcode-select -print-path]
+        return [exec xcode-select -print-path 2> /dev/null]
     }
     return "/Developer"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100503/07882b61/attachment.html>


More information about the macports-changes mailing list