From dcdb828b899d1d69fc8bd6518f87fff69d2a520d Mon Sep 17 00:00:00 2001 From: lixiang Date: Tue, 29 Oct 2024 09:20:03 +0800 Subject: [PATCH 1/2] submit some changes --- advisors/check_command.py | 2 +- advisors/match_patches.py | 2 +- get_license/get_license.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/advisors/check_command.py b/advisors/check_command.py index affbeb75..3efe987e 100755 --- a/advisors/check_command.py +++ b/advisors/check_command.py @@ -69,7 +69,7 @@ def process_check_command(rpms, work_path="/var/tmp/"): if os.path.getsize(command_file) == 0: diff_file.write("The command files are the same in two rpmfiles.\n") else: - diff_file.write("The command files has some differents, changes as follow:\n") + diff_file.write("The command files have some differences, changes as follows:\n") for line in open(command_file): diff_file.write(line) for pre_command in open(pre_bin_file): diff --git a/advisors/match_patches.py b/advisors/match_patches.py index 454d76c9..cd31b681 100755 --- a/advisors/match_patches.py +++ b/advisors/match_patches.py @@ -45,7 +45,7 @@ def _clone_repo(pkg_info): if os.path.exists(dir_pkg): return dir_pkg - print("WARING: Clone failed, {} not exist.".format(dir_pkg)) + print("WARNING: Clone failed, {} not exist.".format(dir_pkg)) return None diff --git a/get_license/get_license.py b/get_license/get_license.py index 87fb972e..9de02bda 100644 --- a/get_license/get_license.py +++ b/get_license/get_license.py @@ -4,7 +4,7 @@ import os from src.license_driver import parse_spec_license, parse_compressed_file_license, get_all_license,\ load_config_new, LICENSE_YAML_PATH -COMMAMD_NAME = { +COMMAND_NAME = { "from-spec", "from-src", "from-all" -- Gitee From d9a28d6e27cc08a8cb462ace942f7c21abb30af5 Mon Sep 17 00:00:00 2001 From: lixiang Date: Tue, 29 Oct 2024 09:22:23 +0800 Subject: [PATCH 2/2] submit some changes --- get_license/get_license.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_license/get_license.py b/get_license/get_license.py index 9de02bda..53ea9d58 100644 --- a/get_license/get_license.py +++ b/get_license/get_license.py @@ -48,7 +48,7 @@ if __name__ == "__main__": spec_lic = {} src_lic = {} pl = load_config_new(LICENSE_YAML_PATH) - if not args.cmd_name or not args.cmd_name in COMMAMD_NAME: + if not args.cmd_name or not args.cmd_name in COMMAND_NAME: print("not find cmd") else: if args.cmd_name == "from-all": -- Gitee