diff --git a/0009-get-abi-detection-process.patch b/0009-get-abi-detection-process.patch new file mode 100644 index 0000000000000000000000000000000000000000..1c54c13acf74a99f23e03bfcbc771874c44fdfda --- /dev/null +++ b/0009-get-abi-detection-process.patch @@ -0,0 +1,40 @@ +From 620114229af58823e27a370ad2839365b0f4535e Mon Sep 17 00:00:00 2001 +From: xuezhixin +Date: Mon, 13 Nov 2023 16:05:28 +0800 +Subject: [PATCH] =?UTF-8?q?agent=E8=8E=B7=E5=8F=96abi=E7=9A=84=E6=B6=88?= + =?UTF-8?q?=E6=81=AF=E9=98=9F=E5=88=97=E8=BF=9B=E5=BA=A6=E4=BF=A1=E6=81=AF?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + sysmig_agent/fork.py | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +diff --git a/sysmig_agent/fork.py b/sysmig_agent/fork.py +index 615b3d5..8c2f4b6 100644 +--- a/sysmig_agent/fork.py ++++ b/sysmig_agent/fork.py +@@ -134,3 +134,19 @@ def timed_task_migrate(task_id, kernel_version): + time_task_m.shutdown() + sql_task_statue('3', task_id) + ++ ++def get_abi_info(): ++ if q.empty(): ++ return None ++# print("Full :", q.full()) ++# print("Empty :", q.empty()) ++# print("QSize:", q.qsize()) ++ size = int(q.qsize()) ++ i=0 ++ msg = '' ++ while i < size: ++ i += 1 ++ msg = q.get() ++ return msg ++# if not q.empty(): ++ +-- +2.20.1 + diff --git a/migration-tools.spec b/migration-tools.spec index be28fcdc0f3eceb6b4e333b80a0f12dc5489f981..0e0f3dce6c90ce8cb0dd383419baf3af8a9f38ad 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.3 -Release: 8 +Release: 9 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 @@ -15,6 +15,7 @@ Patch005: 0005-abi-detection-through-multi-threads.patch Patch006: 0006-add-message-query-to-update-abi-process.patch Patch007: 0007-start-task-to-check-migration.patch Patch008: 0008-add-system-migration-task.patch +Patch009: 0009-get-abi-detection-process.patch BuildArch: noarch @@ -114,6 +115,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Mon Nov 11 2024 xuezhixin - 1.0.3-9 +- 0009-get-abi-detection-process.patch + * Mon Nov 11 2024 xuezhixin - 1.0.3-8 - 0008-add-system-migration-task.patch