Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 36745

Show
Ignore:
Timestamp:
05/13/08 20:22:56 (7 months ago)
Author:
jmr@…
Message:

Prevent duplicate dep_map entries from being inserted. Fix for #8763.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/base/src/registry1.0/receipt_flat.tcl

    r30972 r36745  
    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