mirror of
https://github.com/ihaveamac/custom-install.git
synced 2025-12-05 22:31:45 +00:00
custominstall: remove seek workaround for CDN contents (fixed in pyctr 0.4.6)
This commit is contained in:
@@ -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}!')
|
||||||
|
|||||||
Reference in New Issue
Block a user