55 lines
1.8 KiB
Diff
55 lines
1.8 KiB
Diff
From 7fe482e8fe8438cfb0c714c4861a578e6749b2f8 Mon Sep 17 00:00:00 2001
|
|
From: xuezhixin <xuezhixin@uniontech.com>
|
|
Date: Mon, 13 Nov 2023 10:10:47 +0800
|
|
Subject: [PATCH] =?UTF-8?q?ABI=E6=A3=80=E6=B5=8B=E5=A2=9E=E5=8A=A0?=
|
|
=?UTF-8?q?=E5=9B=9B=E7=A7=8D=E6=A3=80=E6=B5=8B=E5=88=86=E7=B1=BB=E9=A1=B9?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
sysmig_agent/Abisystmcompchk.py | 29 +++++++++++++++++++++++++++++
|
|
1 file changed, 29 insertions(+)
|
|
|
|
diff --git a/sysmig_agent/Abisystmcompchk.py b/sysmig_agent/Abisystmcompchk.py
|
|
index fdbe2e2..cc48f45 100644
|
|
--- a/sysmig_agent/Abisystmcompchk.py
|
|
+++ b/sysmig_agent/Abisystmcompchk.py
|
|
@@ -132,3 +132,32 @@ def platform_release(Flag):
|
|
elif 'oe1' in line:
|
|
break
|
|
return kernel_version.rsplit('.', 1)[0]
|
|
+
|
|
+
|
|
+#Create agent ABI check result file
|
|
+def agent_ABI_check_result():
|
|
+ string = ',,,Y,,\n'
|
|
+
|
|
+ #mycopyfile(abi_incomp_chk, agent_abi_check_result, abi_log)
|
|
+ facp = open(agent_abi_check_result, 'w')
|
|
+ for line in open(abi_incomp_chk):
|
|
+
|
|
+ tmp01 = line.split(',', 5)
|
|
+ tmp = tmp01[4]
|
|
+
|
|
+ if tmp == '库差异':
|
|
+ str_01 = tmp01[0]+','+tmp01[1]+','+tmp01[2]+','+tmp01[3]+',1,'+tmp01[5]
|
|
+ elif tmp == '二进制差异':
|
|
+ str_01 = tmp01[0]+','+tmp01[1]+','+tmp01[2]+','+tmp01[3]+',2,'+tmp01[5]
|
|
+ elif tmp == '可执行文件差异':
|
|
+ str_01 = tmp01[0]+','+tmp01[1]+','+tmp01[2]+','+tmp01[3]+',3,'+tmp01[5]
|
|
+ elif tmp == '视频文件差异':
|
|
+ str_01 = tmp01[0]+','+tmp01[1]+','+tmp01[2]+','+tmp01[3]+',4,'+tmp01[5]
|
|
+
|
|
+ facp.write(str_01)
|
|
+ facp.close()
|
|
+
|
|
+ fp = open(agent_abi_check_result, 'a')
|
|
+ for rpm_name in open(abi_comp_chk):
|
|
+ fp.write(rpm_name.split(',')[0] + string)
|
|
+ fp.close()
|
|
\ No newline at end of file
|
|
--
|
|
2.20.1
|
|
|