diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2018-03-10 15:48:09 -0800 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2018-03-10 15:48:09 -0800 |
commit | 15aaf79ce858fc27227f03701f7748b6b5ff1cf5 (patch) | |
tree | 1d1104a1e1179b18c6b97e074d9a70fe2c940639 | |
parent | 007a1737f3d3ba678bc78d3fa101d61b3d6892db (diff) | |
download | bundler-segiddins/updater-use-more-filesystem-access.tar.gz |
[CompactIndexClient::Updater] Use filesystem_access when copying filessegiddins/updater-use-more-filesystem-access
-rw-r--r-- | lib/bundler/compact_index_client/updater.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/compact_index_client/updater.rb b/lib/bundler/compact_index_client/updater.rb index 950306fee5..4d6eb80044 100644 --- a/lib/bundler/compact_index_client/updater.rb +++ b/lib/bundler/compact_index_client/updater.rb @@ -33,7 +33,9 @@ module Bundler # first try to fetch any new bytes on the existing file if retrying.nil? && local_path.file? - FileUtils.cp local_path, local_temp_path + SharedHelpers.filesystem_access(local_temp_path) do + FileUtils.cp local_path, local_temp_path + end headers["If-None-Match"] = etag_for(local_temp_path) headers["Range"] = if local_temp_path.size.nonzero? |