feat: add ci_mode to toggle download progress

This commit is contained in:
mkg20001 2017-05-02 17:04:28 +02:00 committed by Maciej Krüger
parent 3b023a2d49
commit 956d7b94ae
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

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: