!21 [sync] PR-19: modify patch file incorrect

From: @openeuler-sync-bot 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2023-04-13 10:31:17 +00:00 committed by Gitee
commit 5295d3c4eb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,4 @@
From 6d1e16a3edfc0a1bb5409627779158350dc4a599 Mon Sep 17 00:00:00 2001
From 9207593a65307102e39129ed82fc7df0dbfe178d Mon Sep 17 00:00:00 2001
From: yangchenguang <yangchenguang@kylinsec.com.cn>
Date: Thu, 13 Apr 2023 10:07:44 +0800
Subject: [PATCH] Add loongarch support
@ -10,26 +10,26 @@ Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
2 files changed, 3 insertions(+)
diff --git a/virtManager/create.py b/virtManager/create.py
index e7ddd0c..2c72b5b 100644
index e7ddd0c..dcc70bb 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -428,6 +428,7 @@ class vmmCreate(vmmGObjectUI):
installable_arch = bool(guest.os.is_x86() or
guest.os.is_ppc64() or
guest.os.is_sw_64() or
+ guest.os.is_loongarch() or
+ guest.os.is_loongarch64() or
guest.os.is_s390x())
if guest.prefers_uefi():
diff --git a/virtinst/domain/os.py b/virtinst/domain/os.py
index fdcaa19..95427f2 100644
index fdcaa19..5e16887 100644
--- a/virtinst/domain/os.py
+++ b/virtinst/domain/os.py
@@ -48,6 +48,8 @@ class DomainOs(XMLBuilder):
return self.arch == "aarch64"
def is_sw_64(self):
return self.arch == "sw_64"
+ def is_sw_64(self):
+ def is_loongarch64(self):
+ return self.arch == "loongarch64"
def is_arm(self):
return self.is_arm32() or self.is_arm64()

View File

@ -1,7 +1,7 @@
%global __python %{__python3}
Name: virt-manager
Version: 2.1.0
Release: 7
Release: 8
Summary: The manage virtual machines tool which via libvirt.
License: GPLv2+
BuildArch: noarch
@ -83,6 +83,9 @@ done
%{_mandir}/man1/{virt-install.1*,virt-clone.1*,virt-convert.1*,virt-xml.1*}
%changelog
* Thu Apr 13 2023 yangchenguang <yangchenguang@kylinsec.com.cn> - 2.1.0-8
- Modify patch file incorrect
* Thu Apr 13 2023 yangchenguang <yangchenguang@kylinsec.com.cn> - 2.1.0-7
- Add loongarch64 architecture