From 7c27bcd86c26d821952ea9c16189f95e376a71dc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 22 Sep 2007 18:54:46 +0000 Subject: Flush stderr and stdout if their file descriptors are in fd_pipes at the beginning of spawn(). svn path=/main/trunk/; revision=7795 --- pym/emerge/__init__.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pym/emerge') diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index d11143d26..652a3d355 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -5400,10 +5400,6 @@ def action_info(settings, trees, myopts, myfiles): if not ebuildpath or not os.path.exists(ebuildpath): out.ewarn("No ebuild found for '%s'" % pkg) continue - # In some cases the above print statements don't flush stdout, so - # it needs to be flushed before allowing a child process to use it - # so that output always shows in the correct order. - sys.stdout.flush() portage.doebuild(ebuildpath, "info", pkgsettings["ROOT"], pkgsettings, debug=(settings.get("PORTAGE_DEBUG", "") == 1), mydbapi=trees[settings["ROOT"]]["vartree"].dbapi, -- cgit v1.2.3-1-g7c22