diff --git a/0019-update-abi-result-to-database.patch b/0019-update-abi-result-to-database.patch new file mode 100644 index 0000000000000000000000000000000000000000..fe491322d4548069b2811f257f3016d4bdfa21f4 --- /dev/null +++ b/0019-update-abi-result-to-database.patch @@ -0,0 +1,43 @@ +From 0f2c2d8cbda956a27bb0eb3ee1a0dd14a55f8e19 Mon Sep 17 00:00:00 2001 +From: xuezhixin +Date: Fri, 10 Nov 2023 10:27:15 +0800 +Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0abi=E6=A3=80=E6=B5=8B?= + =?UTF-8?q?=E7=BB=93=E6=9E=9C=E5=88=B0=E6=95=B0=E6=8D=AE=E5=BA=93=E4=B8=AD?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + sysmig_agent/share.py | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/sysmig_agent/share.py b/sysmig_agent/share.py +index aae815c..27e8ff8 100644 +--- a/sysmig_agent/share.py ++++ b/sysmig_agent/share.py +@@ -20,6 +20,8 @@ def get_local_ip(): + finally: + s.close() + ++ ++ + def sql_abi_progress(data): + sql = "UPDATE agent_task SET task_progress = {} ,task_Updatetime = NOW() WHERE agent_ip = '{}';".format(data, get_local_ip()) + try: +@@ -27,6 +29,13 @@ def sql_abi_progress(data): + except: + pass + ++ ++def abi_file_connect(sql_r): ++ abi_sql = "INSERT INTO agent_ABI_check_result VALUES('"+ get_local_ip()+"'," + sql_r + ',NOW());' ++ s = DBHelper() ++ ret_sql_msg = s.execute(abi_sql) ++ ++ + def getSysMigConf(): + confpath = '/etc/migration-tools/migration-tools.conf' + if not os.path.exists(confpath): +-- +2.20.1 + diff --git a/migration-tools.spec b/migration-tools.spec index d42858cdff42dfc47811d245ffcdd1d631c8ddeb..84af514abfa7115581eefdea5d206a2ac744cdae 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.2 -Release: 18 +Release: 19 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 @@ -25,6 +25,8 @@ Patch15: 0015-delete-host-information-interface.patch Patch16: 0016-get-local-ip-on-the-agent.patch Patch17: 0017-add-process-data-in-database.patch Patch18: 0018-detection-of-imported-host-information-interface.patch +Patch19: 0019-update-abi-result-to-database.patch + BuildArch: noarch BuildRequires: systemd @@ -123,6 +125,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Mon Nov 4 2024 xuezhixin - 1.0.2-19 +- 0019-update-abi-result-to-database.patch + * Mon Nov 4 2024 xuezhixin - 1.0.2-18 - 0018-detection-of-imported-host-information-interface.patch