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

ruby-changes:47177

From: nobu <ko1@a...>
Date: Sun, 9 Jul 2017 13:49:21 +0900 (JST)
Subject: [ruby-changes:47177] nobu:r59292 (trunk): downloader.rb: get rid of symlinks in dist files

nobu	2017-07-09 13:49:15 +0900 (Sun, 09 Jul 2017)

  New Revision: 59292

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

  Log:
    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]

  Modified files:
    trunk/tool/downloader.rb
Index: tool/downloader.rb
===================================================================
--- tool/downloader.rb	(revision 59291)
+++ tool/downloader.rb	(revision 59292)
@@ -185,7 +185,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L185
       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)

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

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