!125 count the total number of abi compatible lists
From: @xuezhizone Reviewed-by: @xingwei-liu Signed-off-by: @xingwei-liu
This commit is contained in:
commit
1e6972c0bf
36
0072-count-the-total-number-of-abi-compatible-lists.patch
Normal file
36
0072-count-the-total-number-of-abi-compatible-lists.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From 749ace03d1a3a0a47f68a558a1a6fb4f63b4bd81 Mon Sep 17 00:00:00 2001
|
||||||
|
From: xuezhixin <xuezhixin@uniontech.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: migration-tools
|
Name: migration-tools
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 71
|
Release: 72
|
||||||
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
|
||||||
@ -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
|
Patch69: 0069-get-package-list-downloaded-locally-from-the-software-repository.patch
|
||||||
Patch70: 0070-interface-for-obtaining-repo-interface.patch
|
Patch70: 0070-interface-for-obtaining-repo-interface.patch
|
||||||
Patch71: 0071-get-package-list-from-repository.patch
|
Patch71: 0071-get-package-list-from-repository.patch
|
||||||
|
Patch72: 0072-count-the-total-number-of-abi-compatible-lists.patch
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -177,6 +179,9 @@ rm -rf /usr/bin/migration-tools
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-72
|
||||||
|
- 0072-count-the-total-number-of-abi-compatible-lists.patch
|
||||||
|
|
||||||
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-71
|
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-71
|
||||||
- 0071-get-package-list-from-repository.patch
|
- 0071-get-package-list-from-repository.patch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user