mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-15 06:03:02 -05:00
fix json package error
This commit is contained in:
2
components/3rd_party/json/component.py
vendored
2
components/3rd_party/json/component.py
vendored
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user