diff --git a/0060-add-four-detection-item-to-abi-report.patch b/0060-add-four-detection-item-to-abi-report.patch new file mode 100644 index 0000000000000000000000000000000000000000..8e98d0010ee769d774c026897114988035f04c28 --- /dev/null +++ b/0060-add-four-detection-item-to-abi-report.patch @@ -0,0 +1,54 @@ +From 7fe482e8fe8438cfb0c714c4861a578e6749b2f8 Mon Sep 17 00:00:00 2001 +From: xuezhixin +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 + diff --git a/migration-tools.spec b/migration-tools.spec index a97df08b6ec6e611cd04d921305b22d14edf6678..e3cb90a1bc2c2408728033e00670d5dc2df74ccd 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.2 -Release: 59 +Release: 60 License: MulanPSL-2.0 Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system Source0: %{name}-%{version}.tar.gz @@ -66,6 +66,8 @@ Patch56: 0056-modify-detection-envirnment-interface.patch Patch57: 0057-abi-basic-data-for-report.patch Patch58: 0058-get-detection-envirnment-process-interface.patch Patch59: 0059-add-kernel-detection-result-to-abi-report.patch +Patch60: 0060-add-four-detection-item-to-abi-report.patch + BuildArch: noarch @@ -165,6 +167,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Tue Nov 5 2024 xuezhixin - 1.0.2-60 +- 0060-add-four-detection-item-to-abi-report.patch + * Tue Nov 5 2024 xuezhixin - 1.0.2-59 - 0059-add-kernel-detection-result-to-abi-report.patch