Merge pull request #833 from mkg20001/feat-ci-mode

Add ci_mode to toggle download progress, fixes #823
This commit is contained in:
Andre Miras 2019-02-25 14:08:25 +00:00 committed by GitHub
commit 46bcf9575c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -692,8 +692,9 @@ class Buildozer(object):
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: