diff options
author | dgp <dgp@users.sourceforge.net> | 2012-01-27 18:39:05 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-01-27 18:39:05 (GMT) |
commit | c62d098be3cad9a093cc2e80798adaddcadda7e2 (patch) | |
tree | b0cb730b5d6c7990e51af4cc7ce73e3af1911b83 | |
parent | c476140458013d8216208a4ea6f6c8537525fa98 (diff) | |
download | tcl-c62d098be3cad9a093cc2e80798adaddcadda7e2.zip tcl-c62d098be3cad9a093cc2e80798adaddcadda7e2.tar.gz tcl-c62d098be3cad9a093cc2e80798adaddcadda7e2.tar.bz2 |
3480599 Make [source] and [load] order of multi-file package happen in sortedbug_3480599
order of the file names.
-rw-r--r-- | library/package.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/package.tcl b/library/package.tcl index dc06641..3831822 100644 --- a/library/package.tcl +++ b/library/package.tcl @@ -393,7 +393,7 @@ proc pkg_mkIndex {args} { break } lappend cmd ::tcl::Pkg::Create -name $name -version $version - foreach spec $files($pkg) { + foreach spec [lsort -index 0 $files($pkg)] { foreach {file type procs} $spec { if { $direct } { set procs {} |