diff options
author | dgp <dgp@users.sourceforge.net> | 2012-01-27 18:44:04 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-01-27 18:44:04 (GMT) |
commit | 99e306f09f45f63a694476f23508623afbda3921 (patch) | |
tree | b0cb730b5d6c7990e51af4cc7ce73e3af1911b83 | |
parent | c476140458013d8216208a4ea6f6c8537525fa98 (diff) | |
parent | c62d098be3cad9a093cc2e80798adaddcadda7e2 (diff) | |
download | tcl-99e306f09f45f63a694476f23508623afbda3921.zip tcl-99e306f09f45f63a694476f23508623afbda3921.tar.gz tcl-99e306f09f45f63a694476f23508623afbda3921.tar.bz2 |
3480599 Make [source] and [load] order of multi-file package happen in sorted 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 {} |