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 | f934951357eee3bafac6b13533252477b69ca3aa (patch) | |
tree | a72d7e9c70791fc79963e66b6ba9163b819d5e8b /tool | |
parent | 251c1508e420a061fca17e86da43be1c060d1e49 (diff) | |
download | ruby-f934951357eee3bafac6b13533252477b69ca3aa.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')
-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) |