diff options
-rw-r--r-- | tool/downloader.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb index a4c6041018..a8c47f02c7 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -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}" |