aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2014-07-05 13:50:54 -0500
committerJack Nagel2014-07-05 15:41:22 -0500
commit3e2f255b2ba9489e3370cdbd9f518db9b7413fed (patch)
tree5db4776f60f500b3a291578dc5fee21babc9a707 /Library/Homebrew/download_strategy.rb
parent6833266bb0bfbc7628026176bd54ebd998e663d4 (diff)
downloadhomebrew-3e2f255b2ba9489e3370cdbd9f518db9b7413fed.tar.bz2
Use popen wrapper
Closes #30678.
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 cee9f9bec..83317af04 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -144,7 +144,7 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
def buffered_write(tool)
target = File.basename(basename_without_params, tarball_path.extname)
- IO.popen("#{tool} -f '#{tarball_path}' -c", "rb") do |pipe|
+ Utils.popen_read(tool, "-f", tarball_path.to_s, "-c") do |pipe|
File.open(target, "wb") do |f|
buf = ""
f.write(buf) while pipe.read(1024, buf)