From 8911b725293109243d1741835329f8a0a7fc6128 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Mon, 20 Jan 2025 15:26:07 +0200 Subject: [PATCH] fixup! FIXUP: Handle diffoci updates appropriately --- dev_scripts/reproduce.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev_scripts/reproduce.py b/dev_scripts/reproduce.py index 6480cf3..07f427d 100755 --- a/dev_scripts/reproduce.py +++ b/dev_scripts/reproduce.py @@ -42,7 +42,7 @@ def git_verify(commit, source): def diffoci_hash_matches(diffoci): """Check if the hash of the downloaded diffoci bin matches the expected one.""" m = hashlib.sha256() - m.update(DIFFOCI_PATH.open().read()) + m.update(diffoci) diffoci_checksum = m.hexdigest() return diffoci_checksum == DIFFOCI_CHECKSUM @@ -56,7 +56,7 @@ def diffoci_is_installed(): """ if not DIFFOCI_PATH.exists(): return False - return diffoci_hash_matches(DIFFOCI_PATH.open().read()) + return diffoci_hash_matches(DIFFOCI_PATH.open("rb").read()) def diffoci_download():