From 57210182c3dac9535f6af80d1aed39eb684b6850 Mon Sep 17 00:00:00 2001 From: dgp Date: Fri, 11 Jul 2003 17:25:50 +0000 Subject: * library/package.tcl: Corrected [pkg_mkIndex] bug reported on comp.lang.tcl. The indexer was searching for newly indexed packages instead of newly provided packages. --- ChangeLog | 6 ++++++ library/package.tcl | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c479561..645bdf8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-07-11 Don Porter + + * library/package.tcl: Corrected [pkg_mkIndex] bug reported on + comp.lang.tcl. The indexer was searching for newly indexed packages + instead of newly provided packages. + 2003-07-08 Vince Darley * tests/winFCmd.test: fix for five tests under win98 [Bug 767679] diff --git a/library/package.tcl b/library/package.tcl index 96e2f00..9d1c235 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.23 2003/02/25 23:58:09 dgp Exp $ +# RCS: @(#) $Id: package.tcl,v 1.24 2003/07/11 17:25:50 dgp Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1998 Sun Microsystems, Inc. @@ -272,7 +272,9 @@ proc pkg_mkIndex {args} { set ::tcl::namespaces($::tcl::x) 1 } foreach ::tcl::x [package names] { - set ::tcl::packages($::tcl::x) 1 + if {[string compare [package provide $::tcl::x] ""]} { + set ::tcl::packages($::tcl::x) 1 + } } set ::tcl::origCmds [info commands] @@ -366,7 +368,9 @@ proc pkg_mkIndex {args} { set cmds [lsort [$c eval array names ::tcl::newCmds]] set pkgs [$c eval set ::tcl::newPkgs] if {$doVerbose} { - tclLog "commands provided were $cmds" + if { !$::tcl::direct } { + tclLog "commands provided were $cmds" + } tclLog "packages provided were $pkgs" } if {[llength $pkgs] > 1} { -- cgit v0.12