diff --git a/0081-add-interface-to-export-migration-check-report.patch b/0081-add-interface-to-export-migration-check-report.patch new file mode 100644 index 0000000000000000000000000000000000000000..cd0fe7eba64f1a715c16c3820cc29c258769e53f --- /dev/null +++ b/0081-add-interface-to-export-migration-check-report.patch @@ -0,0 +1,38 @@ +From 70b692876cec1e7615fe157fdab44293b0cbb697 Mon Sep 17 00:00:00 2001 +From: lixin +Date: Mon, 13 Nov 2023 14:39:14 +0800 +Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=BF=81=E7=A7=BB=E6=A3=80?= + =?UTF-8?q?=E6=B5=8B=E6=8A=A5=E5=91=8A=E6=8E=A5=E5=8F=A3?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + index.py | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/index.py b/index.py +index 2f5c946..505e91f 100644 +--- a/index.py ++++ b/index.py +@@ -192,6 +192,17 @@ def get_storage_num(): + return Response(mod, content_type='application/json') + + ++@app.route('/export_reports', methods=['GET', 'POST']) ++def export_reports(): ++ """ ++ 导出迁移检测报告 ++ :return: ++ """ ++ mod = check_methods() ++ if mod: ++ return Response(mod, content_type='application/json') ++ ++ + @app.route('/', methods=['GET', 'POST']) + def MT_index(): + """ +-- +2.20.1 + diff --git a/migration-tools.spec b/migration-tools.spec index e05ad55ceefad527db42cb222ad890207b17e929..1929ec9960b5a204c2e8e02ef634cffef6ccce80 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.2 -Release: 80 +Release: 81 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 @@ -87,7 +87,7 @@ Patch77: 0077-copy-from-unzip-rpm-diractory-and-system-file-to-compatility-di 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 - +Patch81: 0081-add-interface-to-export-migration-check-report.patch BuildArch: noarch @@ -187,6 +187,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Tue Nov 5 2024 xuezhixin - 1.0.2-81 +- 0081-add-interface-to-export-migration-check-report.patch + * Tue Nov 5 2024 xuezhixin - 1.0.2-80 - 0080-write-the-data-of-each-row-into-report.patch