Skip to content

Commit

Permalink
Restore similar fsync behavior from old tar code
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Jan 11, 2012
1 parent 8562265 commit d84090b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
1 change: 1 addition & 0 deletions lib/rubygems/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def extract_tar_gz io, destination_dir # :nodoc:

open destination, 'wb', entry.header.mode do |out|
out.write entry.read
out.fsync rescue nil # for filesystems without fsync(2)
end

say destination if Gem.configuration.really_verbose
Expand Down
23 changes: 0 additions & 23 deletions lib/rubygems/package/f_sync_dir.rb

This file was deleted.

0 comments on commit d84090b

Please sign in to comment.