Fix Apache download strategy in verbose mode

A better fix would be to rewrite the curl method to yield its output,
but I don't feel like doing that right now.
This commit is contained in:
Jack Nagel 2013-11-11 12:35:51 -06:00
parent e22ad69f00
commit 9dd2f1a2c3

View File

@ -228,6 +228,7 @@ class CurlApacheMirrorDownloadStrategy < CurlDownloadStrategy
end end
wr.close wr.close
rd.readline if ARGV.verbose? # Remove Homebrew output
buf << rd.read until rd.eof? buf << rd.read until rd.eof?
rd.close rd.close
Process.wait(pid) Process.wait(pid)