From 4ca2c59b5a726673c6051ea1a66c415a15b9c3a8 Mon Sep 17 00:00:00 2001 From: Ian Burgwin Date: Wed, 24 Feb 2021 15:19:48 -0800 Subject: [PATCH] custominstall: fix cdn content install --- custominstall.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custominstall.py b/custominstall.py index b18a7f4..75e441a 100644 --- a/custominstall.py +++ b/custominstall.py @@ -467,6 +467,7 @@ class CustomInstall: content_out_path = join(temp_content_root, content_filename) self.log(f'Writing {content_enc_path}...') with cia.open_raw_section(co.cindex) as s, open(content_out_path, 'wb') as o: + s.seek(0) # a fix that is hopefully temporary and not permanent result_hash = self.copy_with_progress(s, o, co.size, content_enc_path) if result_hash != co.hash: self.log(f'WARNING: Hash does not match for {content_enc_path}!')