Changeset 29210 for trunk/base


Ignore:
Timestamp:
Sep 17, 2007, 5:12:23 PM (12 years ago)
Author:
jmpp@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/macports.tcl

    r29208 r29210  
    188188proc macports::findBinary {prog {autoconf_hint ""}} {
    189189    if {${autoconf_hint} != "" && [file executable ${autoconf_hint}]} {
    190     return ${autoconf_hint}
    191     } else {
    192     if {[catch {set cmd_path [macports::binaryInPath ${prog}]} result] == 0} {
    193         return ${cmd_path}
    194     } else {
    195         return -code error "${result} or at its MacPorts configuration time location, did you move it?"
    196     }
     190        return ${autoconf_hint}
     191    } else {
     192        if {[catch {set cmd_path [macports::binaryInPath ${prog}]} result] == 0} {
     193            return ${cmd_path}
     194        } else {
     195            return -code error "${result} or at its MacPorts configuration time location, did you move it?"
     196        }
    197197    }
    198198}
     
    202202proc macports::binaryInPath {prog} {
    203203    global env
    204     foreach dir [split $env(PATH) :] { 
    205     if {[file executable [file join $dir $prog]]} {
    206         return [file join $dir $prog]
    207     }
     204    foreach dir [split $env(PATH) :] {
     205        if {[file executable [file join $dir $prog]]} {
     206            return [file join $dir $prog]
     207        }
    208208    }
    209209    return -code error [format [msgcat::mc "Failed to locate '%s' in path: '%s'"] $prog $env(PATH)];
     
    356356                    }
    357357                }
    358             }
    359            
     358            }           
    360359            break
    361360        }
Note: See TracChangeset for help on using the changeset viewer.