From e3cab40afeb883373cab0561758467afc66b6184 Mon Sep 17 00:00:00 2001 From: Neucrack Date: Wed, 23 Oct 2024 16:35:41 +0800 Subject: [PATCH] fix asr dump error --- maix/version.py | 2 +- tools/os/download_builtin_files.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/maix/version.py b/maix/version.py index 2f670215..3f7f5232 100644 --- a/maix/version.py +++ b/maix/version.py @@ -3,6 +3,6 @@ version_major = 4 version_minor = 7 -version_patch = 5 +version_patch = 6 __version__ = "{}.{}.{}".format(version_major, version_minor, version_patch) diff --git a/tools/os/download_builtin_files.py b/tools/os/download_builtin_files.py index 6bb22c8d..02639acd 100644 --- a/tools/os/download_builtin_files.py +++ b/tools/os/download_builtin_files.py @@ -74,6 +74,8 @@ def get_builtin_files(file_path = "", unzip_path=""): print(f"-- download os builtin files {filename} from url: {url}") if not file_path: file_path = os.path.join(curr_dir, "tmp", filename) + if os.path.splitext(filename)[1] not in [".xz"]: + raise Exception(f"builtin files only support tar.xz or .xz file, but now {filename}") download_file(url, file_path) if unzip_path: unzip(file_path, unzip_path)