mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 10:25:25 +01:00
Add e2fsprogs 1.45.7
Additionally, fix downloading in chunks for some files.
This commit is contained in:
parent
8008de8e73
commit
6ea1b8e295
7 changed files with 181 additions and 4 deletions
|
|
@ -100,7 +100,8 @@ this script the next time")
|
|||
response = requests.get(url, allow_redirects=True, stream=True)
|
||||
if response.status_code == 200:
|
||||
with open(abs_file_name, 'wb') as target_file:
|
||||
target_file.write(response.raw.read())
|
||||
for chunk in response.iter_content(chunk_size=None):
|
||||
target_file.write(chunk)
|
||||
else:
|
||||
raise Exception("Download failed.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue