summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-09-08 03:26:12 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-09-08 03:26:12 (GMT)
commita8bbc9486a4349842378729f3c406b5827828f5b (patch)
tree48368319f5b057318530efaa143cff3ce1f8b5c9 /library
parent53dc4dcdeeafe3c4154fb9dd3caf2c7d8423434b (diff)
parentbb55ca2e95ff60cced5834d4c7fd370f5fa5d9b0 (diff)
downloadtcl-a8bbc9486a4349842378729f3c406b5827828f5b.zip
tcl-a8bbc9486a4349842378729f3c406b5827828f5b.tar.gz
tcl-a8bbc9486a4349842378729f3c406b5827828f5b.tar.bz2
merge 8.5. update changes.
Diffstat (limited to 'library')
-rw-r--r--library/tm.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/tm.tcl b/library/tm.tcl
index baa268d..7b9cafe 100644
--- a/library/tm.tcl
+++ b/library/tm.tcl
@@ -248,6 +248,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]