mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
downloader.rb: get rid of symlinks in dist files
* tool/downloader.rb: download to the target file directly if CACHE_SAVE=no, to get rid of symlinks in dist files. [ruby-core:81887] [Bug #13709] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
90d65afc92
commit
b391708718
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ class Downloader
|
|||
raise
|
||||
end
|
||||
mtime = nil
|
||||
dest = (cache && !cache.exist? ? cache : file)
|
||||
dest = (cache_save && cache && !cache.exist? ? cache : file)
|
||||
dest.parent.mkpath
|
||||
dest.open("wb", 0600) do |f|
|
||||
f.write(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue