| Index: lib/cros_build_lib.py
|
| diff --git a/lib/cros_build_lib.py b/lib/cros_build_lib.py
|
| index 47c8f96ae659b6b31394da97f78107f0e10ffa9d..509871c6eedbe06ad9b9e160930e4eae4a3f2fa5 100644
|
| --- a/lib/cros_build_lib.py
|
| +++ b/lib/cros_build_lib.py
|
| @@ -54,8 +54,8 @@ def RunCommand(cmd, print_cmd=True, error_ok=False, error_message=None,
|
|
|
| # Print out the command before running.
|
| if print_cmd:
|
| - Info('PROGRAM(%s) -> RunCommand: %s in dir %s' %
|
| - (GetCallerName(), ' '.join(cmd), cwd))
|
| + Info('PROGRAM(%s) -> RunCommand: %r in dir %s' %
|
| + (GetCallerName(), cmd, cwd))
|
|
|
| try:
|
| proc = subprocess.Popen(cmd, cwd=cwd, stdin=stdin,
|
| @@ -65,7 +65,7 @@ def RunCommand(cmd, print_cmd=True, error_ok=False, error_message=None,
|
| return proc.returncode
|
|
|
| if not error_ok and proc.returncode:
|
| - raise Exception('Command "%s" failed.\n' % (' '.join(cmd)) +
|
| + raise Exception('Command "%r" failed.\n' % (cmd) +
|
| (error_message or error or output or ''))
|
| except Exception, e:
|
| if not error_ok:
|
|
|