diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-09 04:49:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-09 04:49:15 +0000 |
commit | b391708718a7e3516d54e09fae3c602a4cdbd6d4 (patch) | |
tree | a72d7e9c70791fc79963e66b6ba9163b819d5e8b /tool/downloader.rb | |
parent | 90d65afc92ab6e90e4a8fd3e5e4bf9039e931e37 (diff) | |
download | ruby-b391708718a7e3516d54e09fae3c602a4cdbd6d4.tar.gz |
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
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r-- | tool/downloader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb index 9ea9899682..335fe97762 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -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) |