!133 write the data of each row into report
From: @xuezhizone Reviewed-by: @xingwei-liu Signed-off-by: @xingwei-liu
This commit is contained in:
commit
b1866419e8
36
0080-write-the-data-of-each-row-into-report.patch
Normal file
36
0080-write-the-data-of-each-row-into-report.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From ea5231b768fbbb8d23d1d5b45eb94d01d05bcbae Mon Sep 17 00:00:00 2001
|
||||||
|
From: xuezhixin <xuezhixin@uniontech.com>
|
||||||
|
Date: Mon, 13 Nov 2023 14:37:41 +0800
|
||||||
|
Subject: [PATCH] =?UTF-8?q?=E5=86=99=E5=85=A5=E6=AF=8F=E4=B8=80=E8=A1=8C?=
|
||||||
|
=?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E5=88=B0=E6=8A=A5=E5=91=8A=E5=86=85?=
|
||||||
|
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 bf32e49..7b77d95 100644
|
||||||
|
--- a/sysmig_agent/Abisystmcompchk.py
|
||||||
|
+++ b/sysmig_agent/Abisystmcompchk.py
|
||||||
|
@@ -676,3 +676,15 @@ def create_migrate_report_name(flag, logg):
|
||||||
|
|
||||||
|
#Rename the real report name
|
||||||
|
return mycopyfile(migrate_path_name_sample, migrate_name, logg)
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+def write_row_and_column(report_name_rc, value_list, index):
|
||||||
|
+
|
||||||
|
+ row_column_rb = xlrd.open_workbook(report_name_rc, formatting_info=True)
|
||||||
|
+ r_sheet = row_column_rb.sheet_by_index(index)
|
||||||
|
+ row_column_wb = copy(row_column_rb)
|
||||||
|
+ row_column_sheet = row_column_wb.get_sheet(index)
|
||||||
|
+
|
||||||
|
+ for data in value_list:
|
||||||
|
+ row_column_sheet.write(int(data.split('|')[0]),int(data.split('|')[1]),data.split('|')[2])
|
||||||
|
+ row_column_wb.save(report_name_rc)
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: migration-tools
|
Name: migration-tools
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 79
|
Release: 80
|
||||||
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
|
||||||
@ -86,6 +86,8 @@ Patch76: 0076-detection-storage-interface.patch
|
|||||||
Patch77: 0077-copy-from-unzip-rpm-diractory-and-system-file-to-compatility-diractory.patch
|
Patch77: 0077-copy-from-unzip-rpm-diractory-and-system-file-to-compatility-diractory.patch
|
||||||
Patch78: 0078-fill-in-the-data-in-the-checked-templace.patch
|
Patch78: 0078-fill-in-the-data-in-the-checked-templace.patch
|
||||||
Patch79: 0079-get-agent-storage-information.patch
|
Patch79: 0079-get-agent-storage-information.patch
|
||||||
|
Patch80: 0080-write-the-data-of-each-row-into-report.patch
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -185,6 +187,9 @@ rm -rf /usr/bin/migration-tools
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-80
|
||||||
|
- 0080-write-the-data-of-each-row-into-report.patch
|
||||||
|
|
||||||
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-79
|
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-79
|
||||||
- 0079-get-agent-storage-information.patch
|
- 0079-get-agent-storage-information.patch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user