summaryrefslogtreecommitdiffstats
path: root/library/package.tcl
diff options
context:
space:
mode:
authorericm <ericm>2000-01-28 19:32:05 (GMT)
committerericm <ericm>2000-01-28 19:32:05 (GMT)
commitc6f3f1f2051c0e0663480e2fb858e9436d3adcc4 (patch)
treee119b7d215c6e3228881c14c93a9d2d0537711e9 /library/package.tcl
parent7f1780c6f594cd00f51e77b191d7659f31e84743 (diff)
downloadtcl-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.tcl5
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