Hello community,

here is the log from the commit of package yast2-ntp-client for 
openSUSE:Factory checked in at 2016-06-26 23:50:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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        
2016-06-13 21:51:07.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-ntp-client.new/yast2-ntp-client.changes   
2016-06-26 23:50:54.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Jun 14 06:54:54 UTC 2016 - kanders...@suse.com
+
+- Fix handling of NTP records without comments (bsc#977610)
+- 3.1.26
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-ntp-client.spec ++++++
--- /var/tmp/diff_new_pack.U9tMCW/_old  2016-06-26 23:50:55.000000000 +0200
+++ /var/tmp/diff_new_pack.U9tMCW/_new  2016-06-26 23:50:55.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ntp-client
-Version:        3.1.25
+Version:        3.1.26
 Release:        0
 Summary:        YaST2 - NTP Client Configuration
 License:        GPL-2.0+

++++++ yast2-ntp-client-3.1.25.tar.bz2 -> yast2-ntp-client-3.1.26.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.25/package/yast2-ntp-client.changes 
new/yast2-ntp-client-3.1.26/package/yast2-ntp-client.changes
--- old/yast2-ntp-client-3.1.25/package/yast2-ntp-client.changes        
2016-06-10 13:27:34.000000000 +0200
+++ new/yast2-ntp-client-3.1.26/package/yast2-ntp-client.changes        
2016-06-14 10:02:34.000000000 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue Jun 14 06:54:54 UTC 2016 - kanders...@suse.com
+
+- Fix handling of NTP records without comments (bsc#977610)
+- 3.1.26
+
+-------------------------------------------------------------------
 Thu Jun  2 07:40:56 UTC 2016 - kanders...@suse.com
 
 - Fixed Ntp Test adding a workaround to return false in case given
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.25/package/yast2-ntp-client.spec 
new/yast2-ntp-client-3.1.26/package/yast2-ntp-client.spec
--- old/yast2-ntp-client-3.1.25/package/yast2-ntp-client.spec   2016-06-10 
13:27:34.000000000 +0200
+++ new/yast2-ntp-client-3.1.26/package/yast2-ntp-client.spec   2016-06-14 
10:02:34.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ntp-client
-Version:        3.1.25
+Version:        3.1.26
 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.25/src/modules/NtpClient.rb 
new/yast2-ntp-client-3.1.26/src/modules/NtpClient.rb
--- old/yast2-ntp-client-3.1.25/src/modules/NtpClient.rb        2016-06-10 
13:27:34.000000000 +0200
+++ new/yast2-ntp-client-3.1.26/src/modules/NtpClient.rb        2016-06-14 
10:02:34.000000000 +0200
@@ -1158,11 +1158,11 @@
 
     def record_to_h(record)
       {
-        "comment" => record["comment"],
+        "comment" => record["comment"].to_s,
         "kind"    => "value",
         "name"    => record["type"] == "__clock" ? "server" : record["type"],
         "type"    => 0,
-        "value"   => "#{record["address"]} #{record["options"]}"
+        "value"   => "#{record["address"]} #{record["options"]}".strip
       }
     end
 
@@ -1170,11 +1170,11 @@
     # write
     def fugde_options_to_h(record)
       {
-        "comment" => record["fudge_comment"],
+        "comment" => record["fudge_comment"].to_s,
         "kind"    => "value",
         "name"    => "fudge",
         "type"    => 0,
-        "value"   => "#{record["address"]} #{record["fudge_options"]}"
+        "value"   => "#{record["address"]} #{record["fudge_options"]}".strip
       }
     end
 


Reply via email to