New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81821


Ignore:
Timestamp:
08/05/11 04:33:46 (4 years ago)
Author:
cal@…
Message:

rev-upgrade: path_is_in_prefix didn't work as expected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc11-rev-upgrade/base/src/macports1.0/macports.tcl

    r81762 r81821  
    40104010# Returns true if the path is in the prefix, false otherwise 
    40114011proc path_is_in_prefix {path} { 
    4012     return [string first $macports::prefix $path] == 0 || [string first $macports::applications_dir $path] == 0 
     4012    if {[string first $macports::prefix $path] == 0} { 
     4013        return yes 
     4014    } 
     4015    if {[string first $macports::applications_dir $path] == 0} { 
     4016        return yes 
     4017    } 
     4018    return no 
    40134019} 
    40144020 
Note: See TracChangeset for help on using the changeset viewer.