diff options
author | dgp <dgp@users.sourceforge.net> | 2013-09-16 18:59:14 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-09-16 18:59:14 (GMT) |
commit | b0e7980ba4b61bfc9867143b3a08fe0d74894690 (patch) | |
tree | beaad334c814a35e3e90e6297ed8886ee837c853 /library/tm.tcl | |
parent | ee5dada68d84581a9b0c3ac970c11b862f0eb186 (diff) | |
parent | fe8ae4eafcd82339318ba2c288431d00bbee06d9 (diff) | |
download | tcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.zip tcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.tar.gz tcl-b0e7980ba4b61bfc9867143b3a08fe0d74894690.tar.bz2 |
merge trunk; update changes
Diffstat (limited to 'library/tm.tcl')
-rw-r--r-- | library/tm.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/library/tm.tcl b/library/tm.tcl index d2af4f5..55efda6 100644 --- a/library/tm.tcl +++ b/library/tm.tcl @@ -238,6 +238,15 @@ proc ::tcl::tm::UnknownHandler {original name args} { continue } + if {[package ifneeded $pkgname $pkgversion] ne {}} { + # There's already a provide script registered for + # this version of this package. Since all units of + # code claiming to be the same version of the same + # package ought to be identical, just stick with + # the one we already have. + continue + } + # We have found a candidate, generate a "provide script" # for it, and remember it. Note that we are using ::list # to do this; locally [list] means something else without |