From 59e878717d149166d2f048215a8c44fc3d71da70 Mon Sep 17 00:00:00 2001 From: Neucrack Date: Mon, 28 Jul 2025 22:08:45 +0800 Subject: [PATCH] fix json package error --- components/3rd_party/json/component.py | 2 +- tools/cmake/file_downloader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/3rd_party/json/component.py b/components/3rd_party/json/component.py index 357f4035..49e22a85 100644 --- a/components/3rd_party/json/component.py +++ b/components/3rd_party/json/component.py @@ -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"] diff --git a/tools/cmake/file_downloader.py b/tools/cmake/file_downloader.py index c165234a..dd826fe2 100644 --- a/tools/cmake/file_downloader.py +++ b/tools/cmake/file_downloader.py @@ -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