summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2010-02-03 13:10:22 -0600
committerDavid Lehman <dlehman@redhat.com>2010-02-03 13:10:22 -0600
commite3567a995190a89f66a4925523f19d14d2e051f7 (patch)
tree4787f5219b5cc00695951f7544b90821a76394cc
parent40d546a3e090c86357ed7f17443764502151d2b8 (diff)
downloadanaconda-e3567a995190a89f66a4925523f19d14d2e051f7.tar.gz
anaconda-e3567a995190a89f66a4925523f19d14d2e051f7.tar.xz
anaconda-e3567a995190a89f66a4925523f19d14d2e051f7.zip
Log commands as a string instead of as a list of strings.
-rw-r--r--iutil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/iutil.py b/iutil.py
index 3fb405784..872915dff 100644
--- a/iutil.py
+++ b/iutil.py
@@ -105,7 +105,7 @@ def execWithRedirect(command, argv, stdin = None, stdout = None,
elif stderr is None or not isinstance(stderr, file):
stderr = sys.stderr.fileno()
- program_log.info("Running... %s" % ([command] + argv,))
+ program_log.info("Running... %s" % (" ".join([command] + argv),))
#prepare os pipes for feeding tee proceses
pstdout, pstdin = os.pipe()
@@ -201,7 +201,7 @@ def execWithCapture(command, argv, stdin = None, stderr = None, root='/'):
elif stderr is None or not isinstance(stderr, file):
stderr = sys.stderr.fileno()
- program_log.info("Running... %s" % ([command] + argv,))
+ program_log.info("Running... %s" % (" ".join([command] + argv),))
env = os.environ.copy()
env.update({"LC_ALL": "C"})
@@ -273,7 +273,7 @@ def execWithCallback(command, argv, stdin = None, stdout = None,
elif stderr is None or not isinstance(stderr, file):
stderr = sys.stderr.fileno()
- program_log.info("Running... %s" % ([command] + argv,))
+ program_log.info("Running... %s" % (" ".join([command] + argv),))
p = os.pipe()
p_stderr = os.pipe()