aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-11-29 21:05:20 -0600
committerJack Nagel2013-11-29 21:05:28 -0600
commitbac8cce29f2daf638813d4fffc7c51c54207ed15 (patch)
tree8d9cbc0b1c5b73b75d259cb44b651d96efbc5b7d /Library/Homebrew/formula.rb
parentae1d00e31f888588d90d21587d51f4909922e3fc (diff)
downloadbrew-bac8cce29f2daf638813d4fffc7c51c54207ed15.tar.bz2
Flush stdout before leaving Formula#system
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index dd3d17f08..672d21056 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -604,6 +604,8 @@ class Formula
Process.wait
+ $stdout.flush
+
unless $?.success?
f.flush
Kernel.system "/usr/bin/tail", "-n", "5", logfn unless ARGV.verbose?