Fix loongarch architecture support

This commit is contained in:
huangwenhua 2024-05-06 15:47:04 +08:00
parent 76a2bab20a
commit 002e19205f
2 changed files with 17 additions and 12 deletions

View File

@ -1,25 +1,24 @@
From 77d9646088647ae2bbecb70248701458662ebf48 Mon Sep 17 00:00:00 2001 From 07faf607bb2cfa8c99ced77301c589062782b14d Mon Sep 17 00:00:00 2001
From: Sun Haiyong <sunhaiyong@loongson.cn> From: Wenhua Huang <huangwenhua@kylinos.cn>
Date: Wed, 22 Dec 2021 14:37:16 +0800 Date: Mon, 6 May 2024 15:31:15 +0800
Subject: [PATCH] Add loongarch architecture support. Subject: [PATCH] Add loongarch architecture support
--- ---
dnf/rpm/__init__.py | 2 ++ dnf/rpm/__init__.py | 1 +
1 file changed, 2 insertions(+) 1 file changed, 1 insertion(+)
diff --git a/dnf/rpm/__init__.py b/dnf/rpm/__init__.py diff --git a/dnf/rpm/__init__.py b/dnf/rpm/__init__.py
index 696e594..0db8e95 100644 index 12efca7..3ac5716 100644
--- a/dnf/rpm/__init__.py --- a/dnf/rpm/__init__.py
+++ b/dnf/rpm/__init__.py +++ b/dnf/rpm/__init__.py
@@ -97,6 +97,8 @@ _BASEARCH_MAP = _invert({ @@ -97,6 +97,7 @@ _BASEARCH_MAP = _invert({
'mipsel': ('mipsel',), 'mipsel': ('mipsel',),
'mips64': ('mips64',), 'mips64': ('mips64',),
'mips64el': ('mips64el',), 'mips64el': ('mips64el',),
+ 'loongarch32' : ('loongarch32',), + 'loongarch32' : ('loongarch32',),
+ 'loongarch64' : ('loongarch64',), 'loongarch64': ('loongarch64',),
'noarch': ('noarch',), 'noarch': ('noarch',),
'ppc': ('ppc',), 'ppc': ('ppc',),
'ppc64': ('ppc64', 'ppc64iseries', 'ppc64p7', 'ppc64pseries'),
-- --
2.30.0 2.33.0

View File

@ -3,7 +3,7 @@
Name: dnf Name: dnf
Version: 4.16.2 Version: 4.16.2
Release: 2 Release: 3
Summary: A software package manager that manages packages on Linux distributions. Summary: A software package manager that manages packages on Linux distributions.
License: GPL-2.0-or-later AND GPL-1.0-only License: GPL-2.0-or-later AND GPL-1.0-only
URL: https://github.com/rpm-software-management/dnf URL: https://github.com/rpm-software-management/dnf
@ -252,6 +252,12 @@ popd
%{_mandir}/man8/%{name}-automatic.8* %{_mandir}/man8/%{name}-automatic.8*
%changelog %changelog
* Mon May 06 2024 huangwenhua <huangwenhua@kylinos.cn> - 4.16.2-3
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:dnf:Fix loongarch architecture support
* Tue Jan 02 2024 chenhaixing <chenhaixing@huawei.com> - 4.16.2-2 * Tue Jan 02 2024 chenhaixing <chenhaixing@huawei.com> - 4.16.2-2
- Type:bugfix - Type:bugfix
- CVE:NA - CVE:NA