Adapt to category title translation fix in Anaconda
This commit is contained in:
parent
fa305db852
commit
432209e4aa
41
Adapt-to-category-title-translation-fix-in-Anaconda.patch
Normal file
41
Adapt-to-category-title-translation-fix-in-Anaconda.patch
Normal file
@ -0,0 +1,41 @@
|
||||
From b916778474e4181e5a2cc287bde414231427234c Mon Sep 17 00:00:00 2001
|
||||
From: xu_lei_123 <xulei@xfusion.com>
|
||||
Date: Fri, 30 Dec 2022 13:19:45 +0800
|
||||
Subject: [PATCH] Adapt to category title translation fix in Anaconda
|
||||
|
||||
---
|
||||
initial_setup/common.py | 14 +++++++++-----
|
||||
1 file changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/initial_setup/common.py b/initial_setup/common.py
|
||||
index ce7a144..e617000 100644
|
||||
--- a/initial_setup/common.py
|
||||
+++ b/initial_setup/common.py
|
||||
@@ -4,7 +4,7 @@ import os
|
||||
|
||||
from pyanaconda.ui.common import collect
|
||||
from pyanaconda.core.constants import FIRSTBOOT_ENVIRON
|
||||
-from pyanaconda.core.i18n import N_
|
||||
+from initial_setup.i18n import _, N_
|
||||
from pyanaconda.ui.categories import SpokeCategory
|
||||
|
||||
from initial_setup.product import eula_available
|
||||
@@ -145,7 +145,11 @@ def get_quit_message():
|
||||
"You might end up with unusable system if you do.")
|
||||
|
||||
class LicensingCategory(SpokeCategory):
|
||||
- displayOnHubGUI = "ProgressHub"
|
||||
- displayOnHubTUI = "SummaryHub"
|
||||
- sortOrder = 100
|
||||
- title = N_("LICENSING")
|
||||
+
|
||||
+ @staticmethod
|
||||
+ def get_title():
|
||||
+ return _("LICENSING")
|
||||
+
|
||||
+ @staticmethod
|
||||
+ def get_sort_order():
|
||||
+ return 100
|
||||
--
|
||||
2.21.0
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
Name: initial-setup
|
||||
Version: 0.3.83
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Initialize system configuration for a newly installed computer
|
||||
License: GPLv2+
|
||||
URL: https://github.com/rhinstaller/initial-setup
|
||||
Source0: https://github.com/rhinstaller/initial-setup/archive/r0.3.83-1.tar.gz
|
||||
Patch0001: Drop-python-nose-from-the-dependencies.patch
|
||||
Patch9001: initial-setup-add-support-openeuler.patch
|
||||
Patch9002: Adapt-to-category-title-translation-fix-in-Anaconda.patch
|
||||
|
||||
|
||||
%define debug_package %{nil}
|
||||
@ -82,6 +83,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Dec 30 2022 xulei<xulei@xfusion.com> - 0.3.83-2
|
||||
- Adapt to category title translation fix in Anaconda
|
||||
|
||||
* Tue Feb 22 2022 yangping<yangping69@huawei.com> - 0.3.83-1
|
||||
- Upgrade to 0.3.83
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user