Chromium Code Reviews| Index: gclient_utils.py |
| =================================================================== |
| --- gclient_utils.py (revision 27770) |
| +++ gclient_utils.py (working copy) |
| @@ -196,9 +196,11 @@ |
| default), gclient will raise an Error exception. |
| """ |
| + messages_printed = False |
|
M-A Ruel
2009/10/02 01:23:10
unnecessary
|
| if print_messages: |
| print("\n________ running \'%s\' in \'%s\'" |
| % (' '.join(command), in_directory)) |
| + messages_printed = True |
| # *Sigh*: Windows needs shell=True, or else it won't search %PATH% for the |
| # executable, but shell=True makes subprocess on Linux fail when it's called |
| @@ -215,6 +217,10 @@ |
| while in_byte: |
| if in_byte != "\r": |
| if print_stdout: |
| + if not messages_printed: |
|
M-A Ruel
2009/10/02 01:23:10
if not print_messages:
|
| + print("\n________ running \'%s\' in \'%s\'" |
| + % (' '.join(command), in_directory)) |
| + messages_printed = True |
|
M-A Ruel
2009/10/02 01:23:10
print_messages = True
|
| sys.stdout.write(in_byte) |
| if in_byte != "\n": |
| in_line += in_byte |