diff options
author | ericm <ericm> | 2000-01-28 19:32:05 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-01-28 19:32:05 (GMT) |
commit | c6f3f1f2051c0e0663480e2fb858e9436d3adcc4 (patch) | |
tree | e119b7d215c6e3228881c14c93a9d2d0537711e9 /library/package.tcl | |
parent | 7f1780c6f594cd00f51e77b191d7659f31e84743 (diff) | |
download | tcl-c6f3f1f2051c0e0663480e2fb858e9436d3adcc4.zip tcl-c6f3f1f2051c0e0663480e2fb858e9436d3adcc4.tar.gz tcl-c6f3f1f2051c0e0663480e2fb858e9436d3adcc4.tar.bz2 |
* tests/pkg/spacename.tcl:
* tests/pkgMkIndex.test: Tests for fix for bug #2360.
* library/package.tcl: Fixed to extract only the first element of
the list returned by auto_qualify (bug #2360).
Diffstat (limited to 'library/package.tcl')
-rw-r--r-- | library/package.tcl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/package.tcl b/library/package.tcl index f0f9f44..c9506a8 100644 --- a/library/package.tcl +++ b/library/package.tcl @@ -3,7 +3,7 @@ # utility procs formerly in init.tcl which can be loaded on demand # for package management. # -# RCS: @(#) $Id: package.tcl,v 1.8 2000/01/27 19:48:29 ericm Exp $ +# RCS: @(#) $Id: package.tcl,v 1.9 2000/01/28 19:32:05 ericm Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1998 Sun Microsystems, Inc. @@ -302,7 +302,8 @@ proc pkg_mkIndex {args} { # special case so that global names have no leading # ::, this is required by the unknown command - set ::tcl::abs [auto_qualify $::tcl::abs ::] + set ::tcl::abs \ + [lindex [auto_qualify $::tcl::abs ::] 0] if {[string compare $::tcl::x $::tcl::abs]} { # Name changed during qualification |