!123 interface for obtaining repo information

From: @xuezhizone 
Reviewed-by: @xingwei-liu 
Signed-off-by: @xingwei-liu
This commit is contained in:
openeuler-ci-bot 2024-11-07 06:39:43 +00:00 committed by Gitee
commit db5f97b6b1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 43 additions and 2 deletions

View File

@ -0,0 +1,38 @@
From bdf226b949fd997e71d9375ecc5f71553d3bf005 Mon Sep 17 00:00:00 2001
From: lixin <lixinb@uniontech.com>
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

View File

@ -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 <xuezhixin@uniontech.com> - 1.0.2-70
- 0070-interface-for-obtaining-repo-interface.patch
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-69
- 0069-get-package-list-downloaded-locally-from-the-software-repository.patch