diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-07 01:23:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-07 01:23:04 +0000 |
commit | e18f3e85a8cffa40b9f69108389f223d735a6b5d (patch) | |
tree | b53ccb4a22e5951c67ea8faca1bf0c72cad80eb4 /tool | |
parent | 807f3f97b795a9d80a108106708a886115b511d7 (diff) |
make-snapshot: sort globbed results
* tool/make-snapshot (package): globbed results order is
undefined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/make-snapshot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index 788c2b9a0a..7868846f77 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -215,7 +215,7 @@ def package(vcs, rev, destdir, tmp = nil) end # get last revision from previous ChangeLog archive - last_ChangeLog = Dir["#{v}/doc/ChangeLog-*"].grep(/-\d+\z/).last + last_ChangeLog = Dir["#{v}/doc/ChangeLog-*"].grep(/-(\d+)\z/) {|n| [$1.to_i, n]}.max[1] open(last_ChangeLog) do |f| f.readline unless /\Ar(\d+) / =~ f.readline |