diff --git a/0080-write-the-data-of-each-row-into-report.patch b/0080-write-the-data-of-each-row-into-report.patch new file mode 100644 index 0000000000000000000000000000000000000000..9f94ed9b0196cd030b921d4c6b6df2c46325d85d --- /dev/null +++ b/0080-write-the-data-of-each-row-into-report.patch @@ -0,0 +1,36 @@ +From ea5231b768fbbb8d23d1d5b45eb94d01d05bcbae Mon Sep 17 00:00:00 2001 +From: xuezhixin +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 + diff --git a/migration-tools.spec b/migration-tools.spec index 3657ba508aa27f678ba02dd1e8d0efe6fc6e63c9..e05ad55ceefad527db42cb222ad890207b17e929 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.2 -Release: 79 +Release: 80 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 @@ -86,6 +86,8 @@ Patch76: 0076-detection-storage-interface.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 Patch79: 0079-get-agent-storage-information.patch +Patch80: 0080-write-the-data-of-each-row-into-report.patch + BuildArch: noarch @@ -185,6 +187,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Tue Nov 5 2024 xuezhixin - 1.0.2-80 +- 0080-write-the-data-of-each-row-into-report.patch + * Tue Nov 5 2024 xuezhixin - 1.0.2-79 - 0079-get-agent-storage-information.patch