diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-03-27 14:17:15 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-03-27 15:12:37 -0400 |
commit | 56f2d85bc28597e3fc3997c0fe141172ebdeec1d (patch) | |
tree | 20d73fe3347a2962e8444132a73d1c731c226106 /iutil.py | |
parent | 1b305e2134ef0e14f8006757b05e14f7e8e290f1 (diff) | |
download | anaconda-56f2d85bc28597e3fc3997c0fe141172ebdeec1d.tar.gz anaconda-56f2d85bc28597e3fc3997c0fe141172ebdeec1d.tar.xz anaconda-56f2d85bc28597e3fc3997c0fe141172ebdeec1d.zip |
Make sure we give the command that's run on stdout so that it's logged
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -59,6 +59,7 @@ def execWithRedirect(command, argv, stdin = 0, stdout = 1, stderr = 2, if type(stderr) == type("string"): stderr = open(stderr, "w") + stdout.write("Running... %s\n" %([command] + argv,)) try: proc = subprocess.Popen([command] + argv, stdin=stdin, stdout=stdout, stderr=stderr, preexec_fn=chroot, cwd=root) @@ -118,6 +119,7 @@ def execWithPulseProgress(command, argv, stdin = 0, stdout = 1, stderr = 2, stdout = open(stdout, "w") if type(stderr) == type("string"): stderr = open(stderr, "w") + stdout.write("Running... %s\n" %([command] + argv,)) p = os.pipe() childpid = os.fork() |