From 9060e7d447807fb9eb71ffd6a474be375d89c453 Mon Sep 17 00:00:00 2001 From: xuezhixin Date: Thu, 7 Nov 2024 14:29:02 +0800 Subject: [PATCH] interface for obtaining repo interface --- ...terface-for-obtaining-repo-interface.patch | 38 +++++++++++++++++++ migration-tools.spec | 7 +++- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 0070-interface-for-obtaining-repo-interface.patch diff --git a/0070-interface-for-obtaining-repo-interface.patch b/0070-interface-for-obtaining-repo-interface.patch new file mode 100644 index 0000000..4605ab1 --- /dev/null +++ b/0070-interface-for-obtaining-repo-interface.patch @@ -0,0 +1,38 @@ +From bdf226b949fd997e71d9375ecc5f71553d3bf005 Mon Sep 17 00:00:00 2001 +From: lixin +Date: Mon, 13 Nov 2023 10:55:37 +0800 +Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96repo=E4=BF=A1=E6=81=AF?= + =?UTF-8?q?=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 4ca7b38..8629ae3 100644 +--- a/index.py ++++ b/index.py +@@ -168,6 +168,17 @@ def get_environment_data(): + return Response(mod, content_type='application/json') + + ++@app.route('/get_repo_arch_info', methods=['GET', 'POST']) ++def get_repo_arch_info(): ++ """ ++ 获取软件仓库架构和系统信息 ++ :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 099aa49..80752a5 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.2 -Release: 69 +Release: 70 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 @@ -76,7 +76,7 @@ Patch66: 0066-check-if-file-is-binary.patch Patch67: 0067-add-an-abi-comparation-function.patch Patch68: 0068-get-file-list-and-provide-file-path-to-compare.patch Patch69: 0069-get-package-list-downloaded-locally-from-the-software-repository.patch - +Patch70: 0070-interface-for-obtaining-repo-interface.patch BuildArch: noarch @@ -176,6 +176,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Tue Nov 5 2024 xuezhixin - 1.0.2-70 +- 0070-interface-for-obtaining-repo-interface.patch + * Tue Nov 5 2024 xuezhixin - 1.0.2-69 - 0069-get-package-list-downloaded-locally-from-the-software-repository.patch -- Gitee