summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-03-27 14:17:15 -0400
committerJeremy Katz <katzj@redhat.com>2008-03-27 15:12:37 -0400
commit56f2d85bc28597e3fc3997c0fe141172ebdeec1d (patch)
tree20d73fe3347a2962e8444132a73d1c731c226106 /iutil.py
parent1b305e2134ef0e14f8006757b05e14f7e8e290f1 (diff)
downloadanaconda-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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index cc9170bb9..56f61e15e 100644
--- a/iutil.py
+++ b/iutil.py
@@ -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()