[gobject-introspection] dumper: Flush stdout after printing compilation messages



commit a47c78b1c5a577317352411236fbbb7444e97b64
Author: Colin Walters <walters verbum org>
Date:   Thu Jun 30 16:43:24 2011 -0400

    dumper: Flush stdout after printing compilation messages
    
    This helps parallel builds make more sense.

 giscanner/dumper.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 4416ac7..b844938 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -20,6 +20,7 @@
 #
 
 import os
+import sys
 import subprocess
 import shutil
 import tempfile
@@ -187,6 +188,7 @@ class DumpCompiler(object):
         if not self._options.quiet:
             print "g-ir-scanner: compile: %s" % (
                 subprocess.list2cmdline(args), )
+            sys.stdout.flush()
         try:
             subprocess.check_call(args)
         except subprocess.CalledProcessError, e:
@@ -230,6 +232,7 @@ class DumpCompiler(object):
         if not self._options.quiet:
             print "g-ir-scanner: link: %s" % (
                 subprocess.list2cmdline(args), )
+            sys.stdout.flush()
         try:
             subprocess.check_call(args)
         except subprocess.CalledProcessError, e:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]