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

     
    15321532    foreach depspec $depends {
    15331533        set dep_portname [lindex [split $depspec :] end]
    15341534        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            }
    15351547            set status [macports::upgrade $dep_portname "port:$dep_portname" {} $variations $options depscache]
    15361548            if {$status != 0 && ![macports::ui_isset ports_processall]} {
    15371549                return -code error "upgrade $dep_portname failed"