Hello community,

here is the log from the commit of package yast2-ntp-client for 
openSUSE:Factory checked in at 2020-03-27 21:56:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ntp-client (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-ntp-client.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-ntp-client"

Fri Mar 27 21:56:12 2020 rev:121 rq:787497 version:4.2.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-ntp-client/yast2-ntp-client.changes        
2020-03-22 14:16:22.098025943 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-ntp-client.new.3160/yast2-ntp-client.changes  
    2020-03-27 21:56:28.474764034 +0100
@@ -1,0 +2,7 @@
+Mon Mar 23 14:19:10 CET 2020 - [email protected]
+
+- Do not write ntp-servers if they have been shown only (more than
+  one ntp-server) (follow up of bsc#1164547).
+- 4.2.11
+
+-------------------------------------------------------------------

Old:
----
  yast2-ntp-client-4.2.10.tar.bz2

New:
----
  yast2-ntp-client-4.2.11.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-ntp-client.spec ++++++
--- /var/tmp/diff_new_pack.vXNK5i/_old  2020-03-27 21:56:29.038764362 +0100
+++ /var/tmp/diff_new_pack.vXNK5i/_new  2020-03-27 21:56:29.062764376 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ntp-client
-Version:        4.2.10
+Version:        4.2.11
 Release:        0
 Summary:        YaST2 - NTP Client Configuration
 License:        GPL-2.0-or-later

++++++ yast2-ntp-client-4.2.10.tar.bz2 -> yast2-ntp-client-4.2.11.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-4.2.10/package/yast2-ntp-client.changes 
new/yast2-ntp-client-4.2.11/package/yast2-ntp-client.changes
--- old/yast2-ntp-client-4.2.10/package/yast2-ntp-client.changes        
2020-03-19 17:12:16.000000000 +0100
+++ new/yast2-ntp-client-4.2.11/package/yast2-ntp-client.changes        
2020-03-23 15:06:32.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Mon Mar 23 14:19:10 CET 2020 - [email protected]
+
+- Do not write ntp-servers if they have been shown only (more than
+  one ntp-server) (follow up of bsc#1164547).
+- 4.2.11
+
+-------------------------------------------------------------------
 Wed Mar 18 15:44:25 CET 2020 - [email protected]
 
 - NTP-server-configuration/Time-setting-module in a running
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-4.2.10/package/yast2-ntp-client.spec 
new/yast2-ntp-client-4.2.11/package/yast2-ntp-client.spec
--- old/yast2-ntp-client-4.2.10/package/yast2-ntp-client.spec   2020-03-19 
17:12:16.000000000 +0100
+++ new/yast2-ntp-client-4.2.11/package/yast2-ntp-client.spec   2020-03-23 
15:06:32.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ntp-client
-Version:        4.2.10
+Version:        4.2.11
 Release:        0
 Summary:        YaST2 - NTP Client Configuration
 License:        GPL-2.0-or-later
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-4.2.10/src/clients/ntp-client_proposal.rb 
new/yast2-ntp-client-4.2.11/src/clients/ntp-client_proposal.rb
--- old/yast2-ntp-client-4.2.10/src/clients/ntp-client_proposal.rb      
2020-03-19 17:12:16.000000000 +0100
+++ new/yast2-ntp-client-4.2.11/src/clients/ntp-client_proposal.rb      
2020-03-23 15:06:32.000000000 +0100
@@ -321,10 +321,13 @@
     def WriteNtpSettings(ntp_servers, ntp_server, run_service)
       ntp_servers = deep_copy(ntp_servers)
       NtpClient.modified = true
-      NtpClient.ntp_conf.clear_pools
-      ntp_servers << ntp_server if ntp_servers.empty?
-      ntp_servers.each do |server|
-        NtpClient.ntp_conf.add_pool(server)
+      if select_ntp_server
+        # The user has changed the ntp-server(s). So we are writing them.
+        NtpClient.ntp_conf.clear_pools
+        ntp_servers << ntp_server if ntp_servers.empty?
+        ntp_servers.each do |server|
+          NtpClient.ntp_conf.add_pool(server)
+        end
       end
       if run_service
         NtpClient.run_service = true


Reply via email to