Hello community,

here is the log from the commit of package yast2-ntp-client for 
openSUSE:Factory checked in at 2015-08-21 12:41:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-ntp-client (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-ntp-client.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-ntp-client"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-ntp-client/yast2-ntp-client.changes        
2015-08-10 09:09:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-ntp-client.new/yast2-ntp-client.changes   
2015-08-21 12:41:50.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Aug 17 15:57:24 UTC 2015 - [email protected]
+
+- Always use a server from pool.ntp.org as default (bnc#940881)
+- 3.1.19
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-ntp-client.spec ++++++
--- /var/tmp/diff_new_pack.BpqaJl/_old  2015-08-21 12:41:50.000000000 +0200
+++ /var/tmp/diff_new_pack.BpqaJl/_new  2015-08-21 12:41:50.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ntp-client
-Version:        3.1.18
+Version:        3.1.19
 Release:        0
 Summary:        YaST2 - NTP Client Configuration
 License:        GPL-2.0+

++++++ yast2-ntp-client-3.1.18.tar.bz2 -> yast2-ntp-client-3.1.19.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.18/package/yast2-ntp-client.changes 
new/yast2-ntp-client-3.1.19/package/yast2-ntp-client.changes
--- old/yast2-ntp-client-3.1.18/package/yast2-ntp-client.changes        
2015-08-07 15:12:44.000000000 +0200
+++ new/yast2-ntp-client-3.1.19/package/yast2-ntp-client.changes        
2015-08-18 10:45:08.000000000 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Mon Aug 17 15:57:24 UTC 2015 - [email protected]
+
+- Always use a server from pool.ntp.org as default (bnc#940881)
+- 3.1.19
+
+-------------------------------------------------------------------
 Fri Aug  7 12:35:42 UTC 2015 - [email protected]
 
 - bnc#799473 - Do not use chronos.cru.fr which is is not really
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.18/package/yast2-ntp-client.spec 
new/yast2-ntp-client-3.1.19/package/yast2-ntp-client.spec
--- old/yast2-ntp-client-3.1.18/package/yast2-ntp-client.spec   2015-08-07 
15:12:44.000000000 +0200
+++ new/yast2-ntp-client-3.1.19/package/yast2-ntp-client.spec   2015-08-18 
10:45:08.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ntp-client
-Version:        3.1.18
+Version:        3.1.19
 Release:        0
 Summary:        YaST2 - NTP Client Configuration
 License:        GPL-2.0+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ntp-client-3.1.18/src/modules/NtpClient.rb 
new/yast2-ntp-client-3.1.19/src/modules/NtpClient.rb
--- old/yast2-ntp-client-3.1.18/src/modules/NtpClient.rb        2015-08-07 
15:12:44.000000000 +0200
+++ new/yast2-ntp-client-3.1.19/src/modules/NtpClient.rb        2015-08-18 
10:45:08.000000000 +0200
@@ -271,6 +271,7 @@
         country_names = GetCountryNames()
       end
 
+      default_already_chosen = false
       items = Builtins.maplist(servers) do |s, o|
         label = Ops.get(o, "location", "")
         l_country = Ops.get(o, "country", "")
@@ -286,10 +287,18 @@
         else
           label = Builtins.sformat("%1 (%2%3)", s, label, l_country)
         end
+
+        # Select the first occurrence of pool.ntp.org as the default option 
(bnc#940881)
+        if default_already_chosen
+          selected = false
+        else
+          selected = default_already_chosen = s.end_with?("pool.ntp.org")
+        end
+
         if terse_output
-          next Item(Id(s), s)
+          next Item(Id(s), s, selected)
         else
-          next Item(Id(s), label)
+          next Item(Id(s), label, selected)
         end
       end
 


Reply via email to