Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 25th, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/lib/bb/build.py b/lib/bb/build.py
  2. index 0dc8a09..67c3d7d 100644
  3. --- a/lib/bb/build.py
  4. +++ b/lib/bb/build.py
  5. @@ -266,6 +266,11 @@ def exec_func_shell(func, d, runfile, cwd=None):
  6.          if fakerootcmd:
  7.              cmd = [fakerootcmd, runfile]
  8.  
  9. +    try:
  10. +        sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
  11. +    except:
  12. +        pass
  13. +
  14.      if bb.msg.loggerDefaultVerbose:
  15.          logfile = LogTee(logger, sys.stdout)
  16.      else: