download the rpm package in the system
This commit is contained in:
parent
3e5f480833
commit
75838ff0b5
37
0001-download-the-rpm-package-in-the-system.patch
Normal file
37
0001-download-the-rpm-package-in-the-system.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From d0e28ae440b4129eebff1b53d18f42d48ef0156c Mon Sep 17 00:00:00 2001
|
||||
From: xuezhixin <xuezhixin@uniontech.com>
|
||||
Date: Mon, 13 Nov 2023 14:59:04 +0800
|
||||
Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=BD=AF=E4=BB=B6=E5=8C=85?=
|
||||
=?UTF-8?q?=E5=92=8C=E4=B8=8B=E8=BD=BD=E7=9A=84=E8=BD=AF=E4=BB=B6=E5=8C=85?=
|
||||
=?UTF-8?q?=E5=AF=B9=E5=BA=94?=
|
||||
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 0b5c519..eab8322 100644
|
||||
--- a/sysmig_agent/Abisystmcompchk.py
|
||||
+++ b/sysmig_agent/Abisystmcompchk.py
|
||||
@@ -818,3 +818,15 @@ def switch_write_migrate_report(report_name, num, flag):
|
||||
with open(abi_incomp_chk, 'r') as fr_incomp:
|
||||
column_incomp_list = fr_incomp.readlines()
|
||||
write_row_by_row(report_name, column_incomp_list, 2, 0, num)
|
||||
+
|
||||
+
|
||||
+def get_system_unique_pkg(current_pkg_list, download_pkg_list):
|
||||
+ # clean history data
|
||||
+ if os.path.exists(current_system_unique):
|
||||
+ os.remove(current_system_unique)
|
||||
+
|
||||
+ fcw = open(current_system_unique, 'w')
|
||||
+ for data in set(current_pkg_list).difference(set(download_pkg_list)):
|
||||
+ fcw.write(data + '\n')
|
||||
+ fcw.close()
|
||||
+
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@ -1,12 +1,14 @@
|
||||
Name: migration-tools
|
||||
Version: 1.0.3
|
||||
Release: 0
|
||||
Release: 1
|
||||
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
|
||||
Source1: requires.tar.gz
|
||||
Source2: xlwt-1.3.0-py2.py3-none-any.whl
|
||||
# patches
|
||||
Patch001: 0001-download-the-rpm-package-in-the-system.patch
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: systemd
|
||||
@ -105,6 +107,9 @@ rm -rf /usr/bin/migration-tools
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Nov 11 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.3-1
|
||||
- 0001-download-the-rpm-package-in-the-system.patch
|
||||
|
||||
* Mon Nov 11 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.3-0
|
||||
- update to 1.0.3
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user