diff options
| author | Jack Nagel | 2013-09-16 14:39:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-16 14:39:54 -0500 |
| commit | 625d61fe5d5c109f99aa5710cdb7370168b92e47 (patch) | |
| tree | 493ce95af56893f25bfa6567182698a3298d6484 | |
| parent | 23c869afeed3a35dad539b5832de83c98d76f808 (diff) | |
| download | brew-625d61fe5d5c109f99aa5710cdb7370168b92e47.tar.bz2 | |
Treat target as binary when unpacking gzip-only archives
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 7d0115c7a..f84018eb3 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -110,7 +110,7 @@ class CurlDownloadStrategy < AbstractDownloadStrategy target = File.basename(basename_without_params, ".gz") IO.popen("gunzip -f '#{@tarball_path}' -c") do |pipe| - File.open(target, "w") do |f| + File.open(target, "wb") do |f| buf = "" f.write(buf) while pipe.read(1024, buf) end |
