aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2013-09-16 14:39:54 -0500
committerJack Nagel2013-09-16 14:39:54 -0500
commit9235e59959e1e7ff13e7aac6ad698459ba77bbda (patch)
treebe4d58d22b097e7406790df63385da46225ee886 /Library/Homebrew/download_strategy.rb
parentc91f6707bed2db7447328b7d0045184cb91657fa (diff)
downloadhomebrew-9235e59959e1e7ff13e7aac6ad698459ba77bbda.tar.bz2
Treat target as binary when unpacking gzip-only archives
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
-rw-r--r--Library/Homebrew/download_strategy.rb2
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