diff --git a/0004-complete-information-report-after-abi-detection.patch b/0004-complete-information-report-after-abi-detection.patch new file mode 100644 index 0000000000000000000000000000000000000000..630f613cd56ad968b305f2bb8f6c37222f451c6b --- /dev/null +++ b/0004-complete-information-report-after-abi-detection.patch @@ -0,0 +1,45 @@ +From 5787327a9f14de7b3f40945d328a2753b08a0f04 Mon Sep 17 00:00:00 2001 +From: xuezhixin +Date: Mon, 13 Nov 2023 15:19:25 +0800 +Subject: [PATCH] =?UTF-8?q?ABI=E6=A3=80=E6=B5=8B=E5=90=8E=E5=AE=8C?= + =?UTF-8?q?=E6=88=90=E6=95=B4=E5=90=88=E6=8A=A5=E5=91=8A=E4=BF=A1=E6=81=AF?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + sysmig_agent/Abisystmcompchk.py | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + +diff --git a/sysmig_agent/Abisystmcompchk.py b/sysmig_agent/Abisystmcompchk.py +index d717cdf..493c09b 100644 +--- a/sysmig_agent/Abisystmcompchk.py ++++ b/sysmig_agent/Abisystmcompchk.py +@@ -898,3 +898,24 @@ def migrate_before_abi_chk(q_query, task_status): + + return '0' + ++ ++#Check the environment after the migration and generate a detection report ++def migrate_behind_abi_chk(): ++ i=0 ++ Flag='1' ++ ++ log = logger_init() ++ ++ current_install_uos_list = get_system_pkg_name(Flag, log) ++ if not current_install_uos_list: ++ return False ++ ++ migrate_behind_report_name = create_migrate_report_name(Flag, log) ++ if not migrate_behind_report_name: ++ return False ++ ++ while i < 4: ++ write_migrate_report_rst =switch_write_migrate_report(migrate_behind_report_name, i, Flag) ++ i = i + 1 ++ ++ return '0' +-- +2.20.1 + diff --git a/migration-tools.spec b/migration-tools.spec index 4c4e61d741ce3f2e469a5e6881eb46b12172fb3c..6e8cd2aaf815c0ed77c4868921fe745d7d5e4802 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.3 -Release: 3 +Release: 4 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 @@ -10,6 +10,12 @@ Source2: xlwt-1.3.0-py2.py3-none-any.whl Patch001: 0001-download-the-rpm-package-in-the-system.patch Patch002: 0002-get-information-before-migration.patch Patch003: 0003-export-migration-check-report.patch +Patch004: 0004-complete-information-report-after-abi-detection.patch + + + + + BuildArch: noarch BuildRequires: systemd @@ -108,6 +114,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Mon Nov 11 2024 xuezhixin - 1.0.3-4 +- 0004-complete-information-report-after-abi-detection.patch + * Mon Nov 11 2024 xuezhixin - 1.0.3-3 - 0003-export-migration-check-report.patch