summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-01-27 18:44:48 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-01-27 18:44:48 (GMT)
commit8783392efa27d4df503dc1b7029e8fde6ba03b4a (patch)
tree2ff963cbf186023800328c6fffd0975618c2ab42
parentebc5194e2d1e363c46561ea1303dfb409f58862f (diff)
parent99e306f09f45f63a694476f23508623afbda3921 (diff)
downloadtcl-8783392efa27d4df503dc1b7029e8fde6ba03b4a.zip
tcl-8783392efa27d4df503dc1b7029e8fde6ba03b4a.tar.gz
tcl-8783392efa27d4df503dc1b7029e8fde6ba03b4a.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.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/package.tcl b/library/package.tcl
index 52801e6..c30431c 100644
--- a/library/package.tcl
+++ b/library/package.tcl
@@ -399,7 +399,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 {}