mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix r58833
* tool/downloader.rb (Downloader.download): just link to the cache when downloaded to the cache but not the target file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8623ba8618
commit
7a14ffbf5d
1 changed files with 5 additions and 1 deletions
|
@ -195,7 +195,11 @@ class Downloader
|
|||
$stdout.puts "done"
|
||||
$stdout.flush
|
||||
end
|
||||
save_cache(cache, file, name)
|
||||
if dest.eql?(cache)
|
||||
link_cache(cache, file, name)
|
||||
else
|
||||
save_cache(cache, file, name)
|
||||
end
|
||||
return file.to_path
|
||||
rescue => e
|
||||
raise "failed to download #{name}\n#{e.message}: #{url}"
|
||||
|
|
Loading…
Reference in a new issue