summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorericm <ericm@noemail.net>2000-02-07 22:33:17 (GMT)
committerericm <ericm@noemail.net>2000-02-07 22:33:17 (GMT)
commit882fe79ec0676a10dadb79465d8f6fbe14740cd3 (patch)
tree731a155d7ff6d8f6b69e1f3b060657395f08b78e /library
parent3a72b14d2f37149b9fab2d598f171fcd00ff8812 (diff)
downloadtcl-882fe79ec0676a10dadb79465d8f6fbe14740cd3.zip
tcl-882fe79ec0676a10dadb79465d8f6fbe14740cd3.tar.gz
tcl-882fe79ec0676a10dadb79465d8f6fbe14740cd3.tar.bz2
* tests/package.test:
* library/tclIndex: * library/package.tcl: Renamed ::package namespace to ::pkg. FossilOrigin-Name: 7a226d8e74a69ee8fb54fe7d1a86a1b2108905d4
Diffstat (limited to 'library')
-rw-r--r--library/package.tcl12
-rw-r--r--library/tclIndex2
2 files changed, 7 insertions, 7 deletions
diff --git a/library/package.tcl b/library/package.tcl
index c1f8415..f1bfc90 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.10 2000/02/01 01:14:01 ericm Exp $
+# RCS: @(#) $Id: package.tcl,v 1.11 2000/02/07 22:33:17 ericm Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1998 Sun Microsystems, Inc.
@@ -13,7 +13,7 @@
#
# Create the package namespace
-namespace eval ::package {
+namespace eval ::pkg {
}
# pkg_compareExtension --
@@ -360,7 +360,7 @@ proc pkg_mkIndex {args} {
foreach {name version} $pkg {
break
}
- lappend cmd ::package::create -name $name -version $version
+ lappend cmd ::pkg::create -name $name -version $version
foreach spec $files($pkg) {
foreach {file type procs} $spec {
if { $direct } {
@@ -488,7 +488,7 @@ proc tclPkgUnknown {name version {exact {}}} {
}
}
-# ::package::create --
+# ::pkg::create --
#
# Given a package specification generate a "package ifneeded" statement
# for the package, suitable for inclusion in a pkgIndex.tcl file.
@@ -514,8 +514,8 @@ proc tclPkgUnknown {name version {exact {}}} {
# Results:
# An appropriate "package ifneeded" statement for the package.
-proc ::package::create {args} {
- append err(usage) "::package::create "
+proc ::pkg::create {args} {
+ append err(usage) "[lindex [info level 0] 0] "
append err(usage) "-name packageName -version packageVersion"
append err(usage) "?-load {filename ?{procs}?}? ... "
append err(usage) "?-source {filename ?{procs}?}? ..."
diff --git a/library/tclIndex b/library/tclIndex
index 92500b2..c2da6be 100644
--- a/library/tclIndex
+++ b/library/tclIndex
@@ -33,7 +33,7 @@ set auto_index(pkg_mkIndex) [list source [file join $dir package.tcl]]
set auto_index(tclPkgSetup) [list source [file join $dir package.tcl]]
set auto_index(tclMacPkgSearch) [list source [file join $dir package.tcl]]
set auto_index(tclPkgUnknown) [list source [file join $dir package.tcl]]
-set auto_index(::package::create) [list source [file join $dir package.tcl]]
+set auto_index(::pkg::create) [list source [file join $dir package.tcl]]
set auto_index(parray) [list source [file join $dir parray.tcl]]
set auto_index(::safe::InterpStatics) [list source [file join $dir safe.tcl]]
set auto_index(::safe::InterpNested) [list source [file join $dir safe.tcl]]