Add e2fsprogs 1.45.7

Additionally, fix downloading in chunks for some files.
This commit is contained in:
fosslinux 2022-05-22 09:56:18 +10:00
parent 8008de8e73
commit 6ea1b8e295
7 changed files with 181 additions and 4 deletions

View file

@ -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.")