Skip to content

Commit

Permalink
Merge pull request #833 from mkg20001/feat-ci-mode
Browse files Browse the repository at this point in the history
Add ci_mode to toggle download progress, fixes #823
  • Loading branch information
AndreMiras committed Feb 25, 2019
2 parents 3b023a2 + 956d7b9 commit 46bcf95
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 46bcf95

Please sign in to comment.