!65 调整ntp服务器选择优先级
From: @tangjie02 Reviewed-by: @liubuguiii Signed-off-by: @liubuguiii
This commit is contained in:
commit
749bfffd41
@ -0,0 +1,32 @@
|
||||
From f399f85e9dcdd2786dec68f0f8bdd73b1547b891 Mon Sep 17 00:00:00 2001
|
||||
From: tangjie02 <tangjie02@kylinsec.com.cn>
|
||||
Date: Thu, 27 Apr 2023 08:57:46 +0800
|
||||
Subject: [PATCH] feature(timedate): Prior to select last ntp service in
|
||||
ntp-utils.d directory.
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
- 改为优先选择最后一个ntp服务器,即按照.d目录中最后一个文件作为最高优先级
|
||||
|
||||
Signed-off-by: tangjie02 <tangjie02@kylinsec.com.cn>
|
||||
---
|
||||
plugins/timedate/timedate-manager.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/plugins/timedate/timedate-manager.cpp b/plugins/timedate/timedate-manager.cpp
|
||||
index 92a4147..bd3085e 100644
|
||||
--- a/plugins/timedate/timedate-manager.cpp
|
||||
+++ b/plugins/timedate/timedate-manager.cpp
|
||||
@@ -404,7 +404,7 @@ void TimedateManager::init_ntp_units()
|
||||
this->ntp_unit_name_.clear();
|
||||
for (auto &ntp_unit : ntp_units)
|
||||
{
|
||||
- if (ntp_unit == ntp_units.front())
|
||||
+ if (ntp_unit == ntp_units.back())
|
||||
{
|
||||
this->ntp_unit_name_ = ntp_unit;
|
||||
continue;
|
||||
--
|
||||
2.36.1
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
Name: kiran-cc-daemon
|
||||
Version: 2.5.1
|
||||
Release: 4
|
||||
Release: 7
|
||||
Summary: DBus daemon for Kiran Desktop
|
||||
|
||||
License: MulanPSL-2.0
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Patch0: 0001-fix-translate-add-some-translation.patch
|
||||
Patch0001: 0001-fix-keyboard-Add-modifier-lock-window-tips-enable-ke.patch
|
||||
Patch0002: 0001-fix-audio-Fix-coredump-problem-caused-by-nullpointer.patch
|
||||
Patch0003: 0001-fix-audio-Fix-the-type-of-return-value-in-template.patch
|
||||
Patch0: 0001-fix-translate-add-some-translation.patch
|
||||
Patch0001: 0001-fix-keyboard-Add-modifier-lock-window-tips-enable-ke.patch
|
||||
Patch0002: 0001-fix-audio-Fix-coredump-problem-caused-by-nullpointer.patch
|
||||
Patch0003: 0001-fix-audio-Fix-the-type-of-return-value-in-template.patch
|
||||
Patch0004: 0001-feature-timedate-Prior-to-select-last-ntp-service-in.patch
|
||||
|
||||
|
||||
BuildRequires: cmake >= 3.2
|
||||
@ -173,6 +174,15 @@ glib-compile-schemas /usr/share/glib-2.0/schemas &> /dev/nulls || :
|
||||
%{_libdir}/pkgconfig/kiran-cc-daemon.pc
|
||||
|
||||
%changelog
|
||||
* Thu Apr 27 2023 tangjie02 <tangjie02@kylinsec.om.cn> - 2.5.1-7
|
||||
- KYOS-F: Prior to select last ntp service in ntp-utils.d directory.
|
||||
|
||||
* Sun Apr 23 2023 kpkg <kpkg.kylinsec.com.cn> - 2.5.1-6
|
||||
- rebuild for KY3.4-5-GC-KiranUI-2.5
|
||||
|
||||
* Sun Apr 23 2023 kpkg <kpkg.kylinsec.com.cn> - 2.5.1-5
|
||||
- rebuild for KY3.4-5-GC-KiranUI-2.5
|
||||
|
||||
* Sun Apr 23 2023 wangyucheng <wangyucheng@kylinsec.om.cn> - 2.5.1-4
|
||||
- KYOS-F: Conditional statement error
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user