Overview
| Artifact ID: | bee5189fbb53456184cf8ed58ab7968da4bbcd56 |
|---|---|
| Ticket: | 3480599fffffffffffffffffffffffffffffffff
pkg_mkIndex should generate deterministic pkgIndex.tcl order |
| User & Date: | sebres on 2012-01-28 00:47:58 |
Changes
- icomment:
pkg_mkIndex in 8.5 currently generate "pkgIndex.tcl" already sorted by : ... lsort [array names files] ... perhaps, did you mean "auto_mkindex" to generate "tclIndex"? This routine does not do (sort) this at the moment. I have another solution, that in addition to sorting, accelerates auto loading and load the memory gently, example: ----------------------------- ORG: ----------------------------- .... set auto_index(::safe::DeleteHookName) [list source [file join $dir safe.tcl]] set auto_index(::safe::TranslatePath) [list source [file join $dir safe.tcl]] set auto_index(::safe::Log) [list source [file join $dir safe.tcl]] set auto_index(::safe::CheckFileName) [list source [file join $dir safe.tcl]] set auto_index(::safe::AliasSource) [list source [file join $dir safe.tcl]] set auto_index(::safe::AliasLoad) [list source [file join $dir safe.tcl]] set auto_index(::safe::FileInAccessPath) [list source [file join $dir safe.tcl]] set auto_index(::safe::Subset) [list source [file join $dir safe.tcl]] set auto_index(::safe::AliasSubset) [list source [file join $dir safe.tcl]] set auto_index(::safe::AliasEncoding) [list source [file join $dir safe.tcl]] .... set auto_index(::tcl::tm::add) [list source [file join $dir tm.tcl]] set auto_index(::tcl::tm::remove) [list source [file join $dir tm.tcl]] set auto_index(::tcl::tm::list) [list source [file join $dir tm.tcl]] set auto_index(::tcl::tm::UnknownHandler) [list source [file join $dir tm.tcl]] set auto_index(::tcl::tm::roots) [list source [file join $dir tm.tcl]] set auto_index(::tcl::tm::path) [list source [file join $dir tm.tcl]] .... set auto_index(::itclTestClass) [list source [file join $dir testing.itcl]] .... set auto_index(::itclTestClass::proc1) [list source [file join $dir testing.itcl]] set auto_index(::itclTestClass::proc2) [list source [file join $dir testing.itcl]] set auto_index(::itclTestClass::proc3) [list source [file join $dir testing.itcl]] .... ----------------------------- NEW: ----------------------------- set auto_index(::safe::*) [list source [file join $dir safe.tcl]] .... set auto_index(::tcl::tm::*) [list source [file join $dir tm.tcl]] .... set auto_index(::itclTestClass) [list source [file join $dir testing.itcl]] set auto_index(::itclTestClass::*) [list source [file join $dir testing.itcl]] ----------------------------- If someone is interested, I can upload a patch for this.
- login: "sebres"
- mimetype: "text/plain"
- username: "sebres"