Skip to content

Commit 3faf827

Browse files
committed
Merge pull request kivy#505 from ibobalo/master
cosmetic: toolchain logs improved
2 parents 6896fb7 + c1d92cb commit 3faf827

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,13 @@ def shprint(command, *args, **kwargs):
204204
logger.debug(''.join(['\t', line.rstrip()]))
205205
if need_closing_newline:
206206
sys.stdout.write('{}\r{:>{width}}\r'.format(
207-
Colo_Style.RESET_ALL, ' ', width=(columns - 1)))
207+
Err_Style.RESET_ALL, ' ', width=(columns - 1)))
208+
sys.stdout.flush()
208209
except sh.ErrorReturnCode as err:
209210
if need_closing_newline:
210211
sys.stdout.write('{}\r{:>{width}}\r'.format(
211-
Style.RESET_ALL, ' ', width=(columns - 1)))
212+
Err_Style.RESET_ALL, ' ', width=(columns - 1)))
213+
sys.stdout.flush()
212214
if tail_n or filter_in or filter_out:
213215
def printtail(out, name, forecolor, tail_n=0,
214216
re_filter_in=None, re_filter_out=None):

0 commit comments

Comments
 (0)