[29210] trunk/base/src/macports1.0/macports.tcl

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 17 10:12:24 PDT 2007


Revision: 29210
          http://trac.macosforge.org/projects/macports/changeset/29210
Author:   jmpp at macports.org
Date:     2007-09-17 10:12:23 -0700 (Mon, 17 Sep 2007)

Log Message:
-----------

More whitespace cleanups (sorry for the spamming, but they keep getting in the way!)

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

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2007-09-17 16:50:46 UTC (rev 29209)
+++ trunk/base/src/macports1.0/macports.tcl	2007-09-17 17:12:23 UTC (rev 29210)
@@ -187,25 +187,25 @@
 # or in the PATH environment variable through macports::binaryInPath (fallback)
 proc macports::findBinary {prog {autoconf_hint ""}} {
     if {${autoconf_hint} != "" && [file executable ${autoconf_hint}]} {
-    return ${autoconf_hint}
+        return ${autoconf_hint}
     } else {
-    if {[catch {set cmd_path [macports::binaryInPath ${prog}]} result] == 0} {
-        return ${cmd_path}
-    } else {
-        return -code error "${result} or at its MacPorts configuration time location, did you move it?"
+        if {[catch {set cmd_path [macports::binaryInPath ${prog}]} result] == 0} {
+            return ${cmd_path}
+        } else {
+            return -code error "${result} or at its MacPorts configuration time location, did you move it?"
+        }
     }
-    }
 }
 
 # check for a binary in the path
 # returns an error code if it can not be found
 proc macports::binaryInPath {prog} {
     global env
-    foreach dir [split $env(PATH) :] { 
-    if {[file executable [file join $dir $prog]]} {
-        return [file join $dir $prog]
+    foreach dir [split $env(PATH) :] {
+        if {[file executable [file join $dir $prog]]} {
+            return [file join $dir $prog]
+        }
     }
-    }
     return -code error [format [msgcat::mc "Failed to locate '%s' in path: '%s'"] $prog $env(PATH)];
 }
 
@@ -355,8 +355,7 @@
                         global macports::$option
                     }
                 }
-            }
-            
+            }            
             break
         }
     }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070917/04b6a5c3/attachment.html


More information about the macports-changes mailing list