Changeset 37433 for trunk/base/src
- Timestamp:
- 06/07/08 08:54:47 (6 months ago)
- Files:
-
- 1 modified
-
trunk/base/src/macports1.0/macports.tcl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/macports1.0/macports.tcl
r37349 r37433 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 … … 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 … … 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 } 2050 } 2051 } 2052 # library depends is upgraded 2053 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) 1 2058 upgrade $d $i $variationslist [array get options] depscache 2059 } 2060 } 2061 } 2062 # runtime depends is upgraded 2063 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) 1 2068 upgrade $d $i $variationslist [array get options] depscache 2069 } 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 } 2070 2058 } 2071 2059 } … … 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 } … … 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 }

