custominstall: remove seek workaround for CDN contents (fixed in pyctr 0.4.6)

This commit is contained in:
Ian Burgwin
2021-03-08 18:08:32 -08:00
parent f48e177604
commit 38f5e2b0e6

View File

@@ -467,7 +467,6 @@ class CustomInstall:
content_out_path = join(temp_content_root, content_filename) content_out_path = join(temp_content_root, content_filename)
self.log(f'Writing {content_enc_path}...') self.log(f'Writing {content_enc_path}...')
with cia.open_raw_section(co.cindex) as s, open(content_out_path, 'wb') as o: 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) result_hash = self.copy_with_progress(s, o, co.size, content_enc_path)
if result_hash != co.hash: if result_hash != co.hash:
self.log(f'WARNING: Hash does not match for {content_enc_path}!') self.log(f'WARNING: Hash does not match for {content_enc_path}!')