RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/port/portindex.tcl,v
retrieving revision 1.12
diff -u -d -b -w -r1.12 portindex.tcl
|
|
|
39 | 39 | |
40 | 40 | proc pindex {portdir} { |
41 | 41 | global target fd directory archive outdir |
42 | | set interp [dportopen file://[file join $directory $portdir]] |
| 42 | |
| 43 | if {[catch {set interp [dportopen file://[file join $directory $portdir]]} result]} { |
| 44 | puts "Skipping illegally formatted file: $portdir/Portfile" |
| 45 | } else { |
43 | 46 | array set portinfo [dportinfo $interp] |
44 | 47 | dportclose $interp |
45 | 48 | set portinfo(portdir) $portdir |
… |
… |
|
63 | 66 | set len [expr [string length $output] + 1] |
64 | 67 | puts $fd "$portinfo(name) $len" |
65 | 68 | puts $fd $output |
| 69 | } |
66 | 70 | } |
67 | 71 | |
68 | 72 | if {[expr $argc > 4]} { |