mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Merge branch 'master' into 'master'
Tone down makebuildserver terminal spamming The progress bar updating at each 1k chunk spams the terminal to such an extent it stops responding to keypresses (at least with a fast connection). It also seems extremely inefficient to be writing the file in 1k chunks. This makes it 64k, which is more reasonable but quite probably still too small. See merge request !134
This commit is contained in:
commit
8aacbb6b4f
1 changed files with 2 additions and 2 deletions
|
|
@ -292,8 +292,8 @@ for srcurl, shasum in cachefiles:
|
|||
stream=True, verify=False, allow_redirects=True)
|
||||
content_length = int(r.headers.get('content-length'))
|
||||
with open(local_filename, 'ab') as f:
|
||||
for chunk in progress.bar(r.iter_content(chunk_size=1024),
|
||||
expected_size=(content_length / 1024) + 1):
|
||||
for chunk in progress.bar(r.iter_content(chunk_size=65536),
|
||||
expected_size=(content_length / 65536) + 1):
|
||||
if chunk: # filter out keep-alive new chunks
|
||||
f.write(chunk)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue