fix json package error

This commit is contained in:
Neucrack
2025-07-28 22:08:45 +08:00
parent bda04ad7bd
commit 59e878717d
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ def add_file_downloads(confs : dict) -> list:
version = "3.11.3"
url = f"https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz"
if version == "3.11.3":
sha256sum = "d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d."
sha256sum = "d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d"
else:
raise Exception(f"version {version} not support")
sites = ["https://github.com/nlohmann/json"]

View File

@@ -288,7 +288,7 @@ def download_extract_files(items):
if "sha256sum" in item and item["sha256sum"]:
ok, sha256sum = check_sha256sum(pkg_path, item["sha256sum"])
if not ok:
print("-- Error: sha256sum check failed, should be {}, but files's sha256sum is {}.\n Please download this file manually".format(item["sha256sum"], sha256sum))
print("-- Error: sha256sum check failed, should be '{}', but files's sha256sum is '{}'.\n Please download this file manually".format(item["sha256sum"], sha256sum))
sys.exit(1)
# extract_dir not empty means already extracted, continue
need_extract = False