Skip to content

Commit

Permalink
feat: add ci_mode to toggle download progress
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Feb 25, 2019
1 parent 3b023a2 commit 956d7b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildozer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,9 @@ def report_hook(index, blksize, size):
else:
progression = '{0:.2f}%'.format(
index * blksize * 100. / float(size))
stdout.write('- Download {}\r'.format(progression))
stdout.flush()
if "CI" not in environ:
stdout.write('- Download {}\r'.format(progression))
stdout.flush()

url = url + filename
if cwd:
Expand Down

0 comments on commit 956d7b9

Please sign in to comment.