ruby-changes:58097
From: Nobuyoshi <ko1@a...>
Date: Thu, 3 Oct 2019 19:15:38 +0900 (JST)
Subject: [ruby-changes:58097] 47d143be17 (master): make-snapshot: copy cache files instead of linking
https://git.ruby-lang.org/ruby.git/commit/?id=47d143be17 From 47d143be17819bed6dda08e24069d755ef34530b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 3 Oct 2019 16:47:57 +0900 Subject: make-snapshot: copy cache files instead of linking To get rid of setting mode and mtime of the original cache files. diff --git a/tool/make-snapshot b/tool/make-snapshot index da312c3..436863b 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -289,13 +289,8 @@ def package(vcs, rev, destdir, tmp = nil) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L289 dest = exported + file[$srcdir.size..-1] FileUtils.mkpath(File.dirname(dest)) begin - FileUtils.ln(file, dest, force: true) - next unless File.symlink?(dest) - File.unlink(dest) - rescue SystemCallError - end - begin FileUtils.cp_r(file, dest) + FileUtils.chmod_R("u=rwX,go=rX", dest) rescue SystemCallError end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/