mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
807f3f97b7
commit
e18f3e85a8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue