Ticket #15520: depscache.diff
File depscache.diff, 3.8 KB (added by jmroot (Joshua Root), 16 years ago) |
---|
-
src/macports1.0/macports.tcl
1935 1935 ui_error "Unable to exec port: $result" 1936 1936 return 1 1937 1937 } 1938 # we just installed it, so mark it done in the cache 1939 set depscache(port:${portname}) 1 1938 1940 } else { 1939 1941 # port installed outside MacPorts 1940 1942 ui_debug "$portname installed outside the MacPorts system" 1941 1943 set depflag 1 1944 # mark this depspec as satisfied in the cache 1945 set depscache($dspec) 1 1942 1946 } 1943 1947 1944 1948 } else { 1945 1949 ui_error "Checking installed version failed: $result" 1946 1950 exit 1 1947 1951 } 1952 } else { 1953 # we'll now take care of upgrading it, so we can add it to the cache 1954 set depscache(port:${portname}) 1 1948 1955 } 1949 1956 set anyactive no 1950 1957 set version_installed {} … … 2039 2046 set saved_do_dependents [info exists options(ports_do_dependents)] 2040 2047 unset -nocomplain options(ports_do_dependents) 2041 2048 2042 # build depends is upgraded 2043 if {[info exists portinfo(depends_build)]} { 2044 foreach i $portinfo(depends_build) { 2045 if {![llength [array get depscache $i]]} { 2046 set d [lindex [split $i :] end] 2047 set depscache($i) 1 2048 upgrade $d $i $variationslist [array get options] depscache 2049 } 2049 # each dep type is upgraded 2050 foreach dtype {depends_build depends_lib depends_run} { 2051 if {[info exists portinfo($dtype)]} { 2052 foreach i $portinfo($dtype) { 2053 set d [lindex [split $i :] end] 2054 if {![llength [array get depscache port:${d}]] && ![llength [array get depscache $i]]} { 2055 upgrade $d $i $variationslist [array get options] depscache 2056 } 2057 } 2050 2058 } 2051 2059 } 2052 # library depends is upgraded2053 if {[info exists portinfo(depends_lib)]} {2054 foreach i $portinfo(depends_lib) {2055 if {![llength [array get depscache $i]]} {2056 set d [lindex [split $i :] end]2057 set depscache($i) 12058 upgrade $d $i $variationslist [array get options] depscache2059 }2060 }2061 }2062 # runtime depends is upgraded2063 if {[info exists portinfo(depends_run)]} {2064 foreach i $portinfo(depends_run) {2065 if {![llength [array get depscache $i]]} {2066 set d [lindex [split $i :] end]2067 set depscache($i) 12068 upgrade $d $i $variationslist [array get options] depscache2069 }2070 }2071 }2072 2060 2073 2061 # restore dependent-following to its former value 2074 2062 if {$saved_do_dependents} { … … 2095 2083 foreach dep $deplist { 2096 2084 set mpname [lindex $dep 2] 2097 2085 if {![llength [array get depscache port:${mpname}]]} { 2098 set depscache(port:${mpname}) 12099 2086 macports::upgrade $mpname port:${mpname} [array get variations] [array get options] depscache 2100 2087 } 2101 2088 } … … 2194 2181 foreach dep $deplist { 2195 2182 set mpname [lindex $dep 2] 2196 2183 if {![llength [array get depscache port:${mpname}]]} { 2197 set depscache(port:${mpname}) 12198 2184 macports::upgrade $mpname port:${mpname} [array get variations] [array get options] depscache 2199 2185 } 2200 2186 }