Changeset 14492 for trunk/base
- Timestamp:
- Oct 9, 2005, 1:02:08 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port/portindex.tcl
r14224 r14492 5 5 # Traverse through all ports, creating an index and archiving port directories 6 6 # if requested 7 # $Id: portindex.tcl,v 1.3 0 2005/09/22 23:03:13jberry Exp $7 # $Id: portindex.tcl,v 1.31 2005/10/09 01:02:08 jberry Exp $ 8 8 9 9 catch {source \ … … 101 101 102 102 proc pindex {portdir} { 103 variable prefix $darwinports::prefix 104 103 105 global target fd directory archive outdir stats 104 106 incr stats(total) … … 126 128 } 127 129 } 130 131 # Canonicalize any path: dependencies by substituting out $prefix 132 foreach dependstype { depends_build depends_lib depends_run } { 133 if {[info exists portinfo($dependstype)]} { 134 set deps $portinfo($dependstype) 135 set newDeps {} 136 foreach dep $deps { 137 if {[string match "path:$prefix/*" $dep]} { 138 lappend newDeps [regsub "^path:$prefix/" $dep "path:\$prefix/"] 139 } else { 140 lappend newDeps $dep 141 } 142 } 143 set portinfo($dependstype) $newDeps 144 } 145 } 146 128 147 set output [array get portinfo] 129 148 set len [expr [string length $output] + 1]
Note: See TracChangeset
for help on using the changeset viewer.