summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-07-08 08:34:12 +0200
committerChris Johns <chrisj@rtems.org>2016-07-09 14:18:26 +1000
commitd793097d2032ca0ab2d5cf93fa84730865db6c03 (patch)
treea638479a52dbd112ad676201a2041c67126ddfef
parentUse long commands on more platforms (diff)
downloadrtems_waf-d793097d2032ca0ab2d5cf93fa84730865db6c03.tar.bz2
Fix the --show-commands option.
If the --show-commands is set, the cmd-string is joined for printing. This breaks a later Popen call that expects an array instead of an fully assembled string. This patch fixes the problem.
-rw-r--r--rtems.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtems.py b/rtems.py
index 3c0c976..b2e3285 100644
--- a/rtems.py
+++ b/rtems.py
@@ -571,8 +571,8 @@ def output_command_line():
if isinstance(cmd, str):
Logs.info('%s' % cmd)
else:
- cmd = ' '.join(cmd)
- Logs.info('(%d) %s' % (len(cmd), cmd)) # here is the change
+ cmdstr = ' '.join(cmd)
+ Logs.info('(%d) %s' % (len(cmdstr), cmdstr)) # here is the change
Logs.debug('runner_env: kw=%s' % kw)
try:
if self.logger: