Apply suggestions from code review

This commit is contained in:
Erik Sundell
2021-10-19 12:24:34 +02:00
committed by GitHub
parent 63ced8eb7d
commit 6d6ec61102

View File

@@ -52,7 +52,7 @@ def download_miniconda_installer(installer_url, sha256sum):
with tempfile.NamedTemporaryFile('wb') as f:
f.write(requests.get(installer_url).content)
f.flush()
os.fsync()
os.fsync(f)
if sha256_file(f.name) != sha256sum:
raise Exception('sha256sum hash mismatch! Downloaded file corrupted')