diff options
author | Andre Arko <andre@arko.net> | 2015-12-28 11:16:08 +0800 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-25 10:49:51 -0600 |
commit | a45196c0683fa09bc6bbafd90c4740532eb96062 (patch) | |
tree | 7a283d7119736b10dc65c532e60e5fee482ed07e | |
parent | ee35955edb1ec449fb17cb485aaa0661e8e6cae9 (diff) | |
download | bundler-a45196c0683fa09bc6bbafd90c4740532eb96062.tar.gz |
use filesystem_access correctly
-rw-r--r-- | lib/bundler/fetcher/compact_index.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/fetcher/compact_index.rb b/lib/bundler/fetcher/compact_index.rb index 9c65808890..6932ea2c85 100644 --- a/lib/bundler/fetcher/compact_index.rb +++ b/lib/bundler/fetcher/compact_index.rb @@ -69,8 +69,9 @@ module Bundler downloader.fetch(fetch_uri + path, headers) end - Bundler.filesystem_access do - CompactIndexClient.new(Bundler.user_cache + "compact_index" + uri_part, compact_fetcher) + path = Bundler.user_cache + "compact_index" + uri_part + SharedHelpers.filesystem_access(path) do + CompactIndexClient.new(path, compact_fetcher) end end end |