diff --git a/advisors/check_command.py b/advisors/check_command.py index affbeb75f13c43f4d52a46ea9adcc18396c72387..3efe987e058e83f080779ec3fc2cbead5e34ff11 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 454d76c94de450e4a314da1c2a57f4681d757349..cd31b6814d40364302b60b86f778815dc200cf27 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 87fb972e26a47f73e7fff39a0a543d33b6b139d1..53ea9d586f16335188ca1913660b295ec0a72cb6 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" @@ -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":