Ticket #6258: depscache.patch
File depscache.patch, 1.6 KB (added by danielluke (Daniel J. Luke), 19 years ago) |
---|
-
darwinports.tcl
old new 1432 1432 } 1433 1433 1434 1434 # upgrade procedure 1435 proc darwinports::upgrade {pname dspec variationslist optionslist } {1435 proc darwinports::upgrade {pname dspec variationslist optionslist {depscachename ""}} { 1436 1436 array set options $optionslist 1437 1437 array set variations $variationslist 1438 if {![string match "" $depscachename]} { 1439 upvar $depscachename depscache 1440 } 1438 1441 1439 1442 # set to no-zero is epoch overrides version 1440 1443 set epoch_override 0 … … 1571 1574 # build depends is upgraded 1572 1575 if {[info exists portinfo(depends_build)]} { 1573 1576 foreach i $portinfo(depends_build) { 1577 if {![llength [array get depscache $i]]} { 1574 1578 set d [lindex [split $i :] end] 1575 upgrade $d $i $variationslist $optionslist 1579 set depscache($i) 1 1580 upgrade $d $i $variationslist $optionslist depscache 1581 } 1576 1582 } 1577 1583 } 1578 1584 # library depends is upgraded 1579 1585 if {[info exists portinfo(depends_lib)]} { 1580 1586 foreach i $portinfo(depends_lib) { 1587 if {![llength [array get depscache $i]]} { 1581 1588 set d [lindex [split $i :] end] 1582 upgrade $d $i $variationslist $optionslist 1589 set depscache($i) 1 1590 upgrade $d $i $variationslist $optionslist depscache 1591 } 1583 1592 } 1584 1593 } 1585 1594 # runtime depends is upgraded 1586 1595 if {[info exists portinfo(depends_run)]} { 1587 1596 foreach i $portinfo(depends_run) { 1597 if {![llength [array get depscache $i]]} { 1588 1598 set d [lindex [split $i :] end] 1589 upgrade $d $i $variationslist $optionslist 1599 set depscache($i) 1 1600 upgrade $d $i $variationslist $optionslist depscache 1601 } 1590 1602 } 1591 1603 } 1592 1604 }