!147 get abi detection process
From: @xuezhizone Reviewed-by: @xingwei-liu Signed-off-by: @xingwei-liu
This commit is contained in:
commit
323bb8d3a2
40
0009-get-abi-detection-process.patch
Normal file
40
0009-get-abi-detection-process.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
From 620114229af58823e27a370ad2839365b0f4535e Mon Sep 17 00:00:00 2001
|
||||||
|
From: xuezhixin <xuezhixin@uniontech.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: migration-tools
|
Name: migration-tools
|
||||||
Version: 1.0.3
|
Version: 1.0.3
|
||||||
Release: 8
|
Release: 9
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system
|
Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system
|
||||||
Source0: %{name}-%{version}.tar.gz
|
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
|
Patch006: 0006-add-message-query-to-update-abi-process.patch
|
||||||
Patch007: 0007-start-task-to-check-migration.patch
|
Patch007: 0007-start-task-to-check-migration.patch
|
||||||
Patch008: 0008-add-system-migration-task.patch
|
Patch008: 0008-add-system-migration-task.patch
|
||||||
|
Patch009: 0009-get-abi-detection-process.patch
|
||||||
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -114,6 +115,9 @@ rm -rf /usr/bin/migration-tools
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 11 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.3-9
|
||||||
|
- 0009-get-abi-detection-process.patch
|
||||||
|
|
||||||
* Mon Nov 11 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.3-8
|
* Mon Nov 11 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.3-8
|
||||||
- 0008-add-system-migration-task.patch
|
- 0008-add-system-migration-task.patch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user