From 4a710621fea6a9842f3ff342712aaee9fca50699 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 10 Sep 2010 16:10:25 -0700 Subject: Also redirect stderr over to stdout on non-terms Again this is just because rpmbuild does some stupid things. --- src/pyfedpkg/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 8c67261..01d6984 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -172,7 +172,8 @@ def _run_command(cmd, shell=False, env=None, pipe=[], cwd=None): if pipe: proc1 = subprocess.Popen(command, env=environ, stdout=subprocess.PIPE, - stderr=subprocess.PIPE, shell=shell, + stderr=subprocess.STDOUT, + shell=shell, cwd=cwd) proc = subprocess.Popen(pipecmd, env=environ, stdin=proc1.stdout, -- cgit