Changeset 39116 for trunk/base/src
- Timestamp:
- 08/08/08 09:12:16 (4 months ago)
- Location:
- trunk/base/src/registry1.0
- Files:
-
- 2 modified
-
receipt_flat.tcl (modified) (1 diff)
-
registry.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/registry1.0/receipt_flat.tcl
r37349 r39116 764 764 } 765 765 766 # remove duplicate entries from the dep_map 767 # (could be put there by older versions of MacPorts) 768 proc clean_dep_map {args} { 769 variable dep_map 770 set new_map [list] 771 set oldlen [llength $dep_map] 772 ui_debug "Current dep_map has $oldlen entries" 773 foreach de $dep_map { 774 if {[lsearch -exact $new_map $de] == -1} { 775 lappend new_map $de 776 } else { 777 ui_debug "Removing $de from dep_map" 778 } 779 } 780 set dep_map $new_map 781 782 set newlen [llength $dep_map] 783 set diff [expr $oldlen - $newlen] 784 ui_debug "New dep_map has $newlen entries" 785 ui_info "Removed $diff duplicate entries from the dependency map" 786 } 787 766 788 proc write_dep_map {args} { 767 789 global macports::registry.path -
trunk/base/src/registry1.0/registry.tcl
r26177 r39116 371 371 } 372 372 373 proc clean_dep_map {args} { 374 global macports::registry.format 375 return [${macports::registry.format}::clean_dep_map $args] 376 } 377 373 378 proc write_dep_map {args} { 374 379 global macports::registry.format

