[前][次][番号順一覧][スレッド一覧]

ruby-changes:46724

From: nobu <ko1@a...>
Date: Mon, 22 May 2017 12:18:23 +0900 (JST)
Subject: [ruby-changes:46724] nobu:r58841 (trunk): fix r58833

nobu	2017-05-22 12:18:17 +0900 (Mon, 22 May 2017)

  New Revision: 58841

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58841

  Log:
    fix r58833
    
    * tool/downloader.rb (Downloader.download): just link to the cache
      when downloaded to the cache but not the target file.

  Modified files:
    trunk/tool/downloader.rb
Index: tool/downloader.rb
===================================================================
--- tool/downloader.rb	(revision 58840)
+++ tool/downloader.rb	(revision 58841)
@@ -195,7 +195,11 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L195
       $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}"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]