diff --git a/script/tools/check_dep.py b/script/tools/check_dep.py index 118a18a537c919d4e1ac611ea9d5b321d4359d01..367af1e57255318e0751f315a55356ed79fe1d65 100644 --- a/script/tools/check_dep.py +++ b/script/tools/check_dep.py @@ -196,8 +196,7 @@ def set_exclude_pkg_all_rpms(): if file_content: print("============ start search all rpms of exclude rpm list ===========") pkg_rpms_list = [] - cmd = "uname -m" - arch = os.popen(cmd).read().strip() + arch = platform.machine() cmd = f"osc list {args.project} 2>/dev/null" res = os.popen(cmd).read().split() pkglist = [x for x in res if x != '']