summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2018-03-10 15:48:09 -0800
committerSamuel Giddins <segiddins@segiddins.me>2018-03-10 15:48:09 -0800
commit15aaf79ce858fc27227f03701f7748b6b5ff1cf5 (patch)
tree1d1104a1e1179b18c6b97e074d9a70fe2c940639
parent007a1737f3d3ba678bc78d3fa101d61b3d6892db (diff)
downloadbundler-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.rb4
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?