From 6f29f7d371c4188d656414646b70cfa86244228b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 26 Mar 2014 16:56:08 +0000 Subject: bitbake: knotty: Ensure the progress bar shows on stdout I can understand why some programs would want the progress on stderr so that real output can be captured on stdout. This is confusing for bitbake since we don't show a progress bar at all in non-interactive cases. Therefore make sure the progress bar goes to stdout, not the stderr default. (Bitbake rev: 0529aa9966df5c56b07affe865efce18852efe5a) Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/knotty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 009653c038..31c2dbbcfc 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -49,7 +49,7 @@ class BBProgress(progressbar.ProgressBar): self._resize_default = signal.getsignal(signal.SIGWINCH) except: self._resize_default = None - progressbar.ProgressBar.__init__(self, maxval, [self.msg + ": "] + widgets) + progressbar.ProgressBar.__init__(self, maxval, [self.msg + ": "] + widgets, fd=sys.stdout) def _handle_resize(self, signum, frame): progressbar.ProgressBar._handle_resize(self, signum, frame) -- cgit v1.2.3-54-g00ecf