summaryrefslogtreecommitdiff
path: root/lib/bundler/compact_index_client
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/compact_index_client')
-rw-r--r--lib/bundler/compact_index_client/updater.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/bundler/compact_index_client/updater.rb b/lib/bundler/compact_index_client/updater.rb
index f69b81f116..8dd8de3d06 100644
--- a/lib/bundler/compact_index_client/updater.rb
+++ b/lib/bundler/compact_index_client/updater.rb
@@ -29,8 +29,6 @@ module Bundler
headers = {}
Bundler::SharedHelpers.filesystem_access(Dir.tmpdir, :write) do
- validate_permissions_on_home
-
Dir.mktmpdir("bundler-compact-index-") do |local_temp_dir|
local_temp_path = Pathname.new(local_temp_dir).join(local_path.basename)
@@ -106,16 +104,6 @@ module Bundler
Digest::MD5.hexdigest(IO.read(path))
end
end
-
- private
-
- def validate_permissions_on_home
- return if File.stat(ENV["HOME"]).writable?
- raise Bundler::PermissionError,
- "Bundler does not have write access to $HOME. Bundler must " \
- "have write access to $HOME to function properly. " \
- "$HOME is currently #{ENV["HOME"]}"
- end
end
end
end