From b935c7b204afabd34eaa77edf9928a6d056c1242 Mon Sep 17 00:00:00 2001 From: xuezhixin Date: Thu, 7 Nov 2024 15:08:39 +0800 Subject: [PATCH] count the total number of abi compatible lists --- ...total-number-of-abi-compatible-lists.patch | 36 +++++++++++++++++++ migration-tools.spec | 7 +++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 0072-count-the-total-number-of-abi-compatible-lists.patch diff --git a/0072-count-the-total-number-of-abi-compatible-lists.patch b/0072-count-the-total-number-of-abi-compatible-lists.patch new file mode 100644 index 0000000..307edcf --- /dev/null +++ b/0072-count-the-total-number-of-abi-compatible-lists.patch @@ -0,0 +1,36 @@ +From 749ace03d1a3a0a47f68a558a1a6fb4f63b4bd81 Mon Sep 17 00:00:00 2001 +From: xuezhixin +Date: Mon, 13 Nov 2023 13:42:21 +0800 +Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1abi=E5=85=BC=E5=AE=B9?= + =?UTF-8?q?=E7=9A=84=E5=88=97=E8=A1=A8=E6=80=BB=E6=95=B0=E9=87=8F?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + sysmig_agent/Abisystmcompchk.py | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/sysmig_agent/Abisystmcompchk.py b/sysmig_agent/Abisystmcompchk.py +index bac4205..f402a74 100644 +--- a/sysmig_agent/Abisystmcompchk.py ++++ b/sysmig_agent/Abisystmcompchk.py +@@ -516,3 +516,15 @@ def get_system_pkg_list(migbeflist): + return newlist + else: + return False ++ ++ ++def incomp_pkg_num(): ++ tmp='' ++ num=0 ++ for line in open(abi_incomp_chk, 'r').readlines(): ++ tmp_01 = line.split(',')[0] ++ if tmp!=tmp_01: ++ num = num + 1 ++ tmp = line.split(',')[0] ++ return num ++ +-- +2.20.1 + diff --git a/migration-tools.spec b/migration-tools.spec index 4394ad4..9bb53c3 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.2 -Release: 71 +Release: 72 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 @@ -78,6 +78,8 @@ Patch68: 0068-get-file-list-and-provide-file-path-to-compare.patch Patch69: 0069-get-package-list-downloaded-locally-from-the-software-repository.patch Patch70: 0070-interface-for-obtaining-repo-interface.patch Patch71: 0071-get-package-list-from-repository.patch +Patch72: 0072-count-the-total-number-of-abi-compatible-lists.patch + BuildArch: noarch @@ -177,6 +179,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Tue Nov 5 2024 xuezhixin - 1.0.2-72 +- 0072-count-the-total-number-of-abi-compatible-lists.patch + * Tue Nov 5 2024 xuezhixin - 1.0.2-71 - 0071-get-package-list-from-repository.patch -- Gitee