Ticket #30593: macports30593.diff
File macports30593.diff, 911 bytes (added by kurthindenburg (Kurt Hindenburg), 13 years ago) |
---|
-
macports.tcl
old new 2312 2312 2313 2313 set sourceno 0 2314 2314 set matches [list] 2315 set index_file_missing 0 2315 2316 foreach source $sources { 2316 2317 set source [lindex $source 0] 2317 2318 set protocol [macports::getprotocol $source] … … 2328 2329 incr sourceno 1 2329 2330 if {[catch {set fd [open [macports::getindex $source] r]} result]} { 2330 2331 ui_warn "Can't open index file for source: $source" 2332 set index_file_missing 1 2331 2333 } else { 2332 2334 try { 2333 2335 seek $fd $offset … … 2387 2389 } 2388 2390 } 2389 2391 2392 # User deleted their PortIndex, try using mportsearch 2393 if {$index_file_missing && ([llength $matches] == 0)} { 2394 set matches [mportsearch $name no exact name] 2395 } 2390 2396 return $matches 2391 2397 } 2392 2398