diff options
author | Chris Lumens <clumens@redhat.com> | 2006-08-11 15:01:24 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-08-11 15:01:24 +0000 |
commit | 8ca874078b4a7d1b7da006e69a1076fd9973fe9b (patch) | |
tree | 13768abc2b01db96a35d34e8954d7aaa8e7afeac /iutil.py | |
parent | 3ce263801fb2da78611e41e5e2a161e03f62cbe9 (diff) | |
download | anaconda-8ca874078b4a7d1b7da006e69a1076fd9973fe9b.tar.gz anaconda-8ca874078b4a7d1b7da006e69a1076fd9973fe9b.tar.xz anaconda-8ca874078b4a7d1b7da006e69a1076fd9973fe9b.zip |
Capture stderr output too (useful for logging VNC error messages).
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -65,7 +65,8 @@ def execWithCapture(command, argv, stdin = 0, stderr = 2, root='/'): try: pipe = subprocess.Popen([command] + argv, stdin=stdin, stdout=subprocess.PIPE, - stderr=stderr, preexec_fn=chroot) + stderr=subprocess.STDOUT, + preexec_fn=chroot) except OSError, (errno, msg): raise RuntimeError, "Error running " + command + ": " + msg |