diff options
author | dgp <dgp@users.sourceforge.net> | 2013-07-15 19:09:59 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-07-15 19:09:59 (GMT) |
commit | 5684ad8d9463f7c23551d1fef32f69c3f72fdd27 (patch) | |
tree | 63662eea7bf320b5558acbd65627cd89a0af6948 /library | |
parent | 774c4023655381f0f5d722f19ae8bed785ebff58 (diff) | |
download | tcl-5684ad8d9463f7c23551d1fef32f69c3f72fdd27.zip tcl-5684ad8d9463f7c23551d1fef32f69c3f72fdd27.tar.gz tcl-5684ad8d9463f7c23551d1fef32f69c3f72fdd27.tar.bz2 |
Possible improvement in light of [86ceb4e2b6].
Diffstat (limited to 'library')
-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..955e84d 100644 --- a/library/tm.tcl +++ b/library/tm.tcl @@ -238,6 +238,15 @@ proc ::tcl::tm::UnknownHandler {original name args} { continue } + if {[string length [package ifneeded $pkgname $pkgversion]]} { + # 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 |