Ticket #20591: patch-non-indexed-deps.diff
File patch-non-indexed-deps.diff, 1.1 KB (added by raimue (Rainer Müller), 15 years ago) |
---|
-
macports1.0/macports.tcl
1532 1532 foreach depspec $depends { 1533 1533 set dep_portname [lindex [split $depspec :] end] 1534 1534 if {![info exists depscache(port:$dep_portname)] && [registry::entry_exists_for_name $dep_portname]} { 1535 # check if the port is in tree 1536 if {[catch {mportlookup $dep_portname} result]} { 1537 global errorInfo 1538 ui_debug "$errorInfo" 1539 ui_error "port lookup failed: $result" 1540 return 1 1541 } 1542 # port doesnt exist! 1543 if {$result == ""} { 1544 ui_debug "Could not lookup $dep_portname in PortIndex, not trying to upgrade" 1545 continue 1546 } 1535 1547 set status [macports::upgrade $dep_portname "port:$dep_portname" {} $variations $options depscache] 1536 1548 if {$status != 0 && ![macports::ui_isset ports_processall]} { 1537 1549 return -code error "upgrade $dep_portname failed"