From 47d143be17819bed6dda08e24069d755ef34530b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada 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. --- tool/make-snapshot | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tool') diff --git a/tool/make-snapshot b/tool/make-snapshot index da312c3681..436863b185 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -288,14 +288,9 @@ def package(vcs, rev, destdir, tmp = nil) puts "copying #{file}" 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 v1.2.3