diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index b935d2d..ccf1e74 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -494,6 +494,7 @@ def cmd(string)
while line = pipe.gets()
$log.puts line
puts line if Rbpkg.verbose_level > 1
+ $stdout.flush
end
pipe.close
$?.success?