summaryrefslogtreecommitdiffstats
path: root/library/package.tcl
diff options
context:
space:
mode:
authorericm <ericm@noemail.net>2000-01-28 19:32:05 (GMT)
committerericm <ericm@noemail.net>2000-01-28 19:32:05 (GMT)
commited8caa8ee956e1c2657c03f8fc7df93992d981aa (patch)
treee119b7d215c6e3228881c14c93a9d2d0537711e9 /library/package.tcl
parentde2866bf60bcf9dd52ad7d6b942014f17ff359d0 (diff)
downloadtcl-ed8caa8ee956e1c2657c03f8fc7df93992d981aa.zip
tcl-ed8caa8ee956e1c2657c03f8fc7df93992d981aa.tar.gz
tcl-ed8caa8ee956e1c2657c03f8fc7df93992d981aa.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). FossilOrigin-Name: 031046ecdaff0e3536b3a8da01cd518bec4ad260
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