diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-03 16:47:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-03 19:09:16 +0900 |
commit | 47d143be17819bed6dda08e24069d755ef34530b (patch) | |
tree | 3db4381826876552b875571a6d8a882416864ae7 /tool | |
parent | b7ae26e2eec9efb826e4a2d913a67341531c6342 (diff) | |
download | ruby-47d143be17819bed6dda08e24069d755ef34530b.tar.gz |
make-snapshot: copy cache files instead of linking
To get rid of setting mode and mtime of the original cache files.
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/make-snapshot | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index da312c3681..436863b185 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -289,13 +289,8 @@ def package(vcs, rev, destdir, tmp = nil) 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 |