Ticket #8763: no-depmap-dupes.diff

File no-depmap-dupes.diff, 550 bytes (added by jmroot (Joshua Root), 17 years ago)

proposed fix

  • src/registry1.0/receipt_flat.tcl

     
    732732
    733733proc register_dep {dep type port} {
    734734        variable dep_map
    735         lappend dep_map [list $dep $type $port]
     735        set newdep [list $dep $type $port]
     736        # slow, but avoids duplicate entries building up
     737        if {[lsearch -exact $dep_map $newdep] == -1} {
     738            lappend dep_map $newdep
     739        }
    736740}
    737741
    738742proc unregister_dep {dep type port} {