From 8cba5a67dbba2050368b23aa7a0d0eb927fa61b1 Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Mon, 8 Apr 2024 03:21:00 +0000 Subject: [PATCH] =?UTF-8?q?update=20script/tools/check=5Fdep.py.=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caohongtao --- script/tools/check_dep.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/tools/check_dep.py b/script/tools/check_dep.py index 118a18a..367af1e 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 != ''] -- Gitee