IQ.Pilot Release Commit @ 2f37564

This commit is contained in:
IQ.Lvbs CI [bot]
2026-07-27 01:30:19 -05:00
parent 6a4096e52e
commit 15c14e1369
236 changed files with 2475 additions and 990 deletions

View File

@@ -34,7 +34,7 @@ _NET_PROBE_ATTEMPTS = 10
_NET_PROBE_INTERVAL_S = 2
def get_file_hash(path: str) -> str:
def sha256_of_file(path: str) -> str:
"""Hex SHA-256 digest of a file on disk."""
digest = hashlib.sha256()
with open(path, "rb") as handle:
@@ -103,7 +103,7 @@ class VendorMapdInstaller:
if not reference:
return True
try:
return get_file_hash(VENDOR_MAPD_PATH) == reference
return sha256_of_file(VENDOR_MAPD_PATH) == reference
except OSError:
return False