Hello community,

here is the log from the commit of package yast2-ntp-client for 
openSUSE:Factory checked in at 2016-05-12 09:33:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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-04-28 16:49:30.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-ntp-client.new/yast2-ntp-client.changes   
2016-05-12 09:33:07.000000000 +0200
@@ -1,0 +2,12 @@
+Fri May  6 16:09:50 UTC 2016 - [email protected]
+
+- Fixed the default synchronization interval in the help text
+  (bsc#978453)
+- Unify the default value in the code (the proposal client used
+  a different default)
+- Set the initial state of the interval widget according to
+  the current synchronization mode (bsc#978892)
+- Fixed firewall widget layout (double frame widget)
+- 3.1.23
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ yast2-ntp-client.spec ++++++
--- /var/tmp/diff_new_pack.RFgOor/_old  2016-05-12 09:33:08.000000000 +0200
+++ /var/tmp/diff_new_pack.RFgOor/_new  2016-05-12 09:33:08.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ntp-client
-Version:        3.1.22
+Version:        3.1.23
 Release:        0
 Summary:        YaST2 - NTP Client Configuration
 License:        GPL-2.0+

++++++ yast2-ntp-client-3.1.22.tar.bz2 -> yast2-ntp-client-3.1.23.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.22/package/yast2-ntp-client.changes 
new/yast2-ntp-client-3.1.23/package/yast2-ntp-client.changes
--- old/yast2-ntp-client-3.1.22/package/yast2-ntp-client.changes        
2016-04-18 15:55:36.000000000 +0200
+++ new/yast2-ntp-client-3.1.23/package/yast2-ntp-client.changes        
2016-05-09 10:21:22.000000000 +0200
@@ -1,4 +1,16 @@
 -------------------------------------------------------------------
+Fri May  6 16:09:50 UTC 2016 - [email protected]
+
+- Fixed the default synchronization interval in the help text
+  (bsc#978453)
+- Unify the default value in the code (the proposal client used
+  a different default)
+- Set the initial state of the interval widget according to
+  the current synchronization mode (bsc#978892)
+- Fixed firewall widget layout (double frame widget)
+- 3.1.23
+
+-------------------------------------------------------------------
 Thu Apr 14 09:16:37 CEST 2016 - [email protected]
 
 - Calls to sntp adjusted to the syntax of ntp 4.2.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.22/package/yast2-ntp-client.spec 
new/yast2-ntp-client-3.1.23/package/yast2-ntp-client.spec
--- old/yast2-ntp-client-3.1.22/package/yast2-ntp-client.spec   2016-04-18 
15:55:36.000000000 +0200
+++ new/yast2-ntp-client-3.1.23/package/yast2-ntp-client.spec   2016-05-09 
10:21:22.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-ntp-client
-Version:        3.1.22
+Version:        3.1.23
 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.22/src/clients/ntp-client_proposal.rb 
new/yast2-ntp-client-3.1.23/src/clients/ntp-client_proposal.rb
--- old/yast2-ntp-client-3.1.22/src/clients/ntp-client_proposal.rb      
2016-04-18 15:55:36.000000000 +0200
+++ new/yast2-ntp-client-3.1.23/src/clients/ntp-client_proposal.rb      
2016-05-09 10:21:22.000000000 +0200
@@ -57,9 +57,7 @@
 
 
 
-      if false
-        return
-      elsif @func == "GetNTPEnabled"
+      if @func == "GetNTPEnabled"
         @ret = GetNTPEnabled()
       elsif @func == "SetUseNTP"
         NtpClient.ntp_selected = Ops.get_boolean(@param, "ntp_used", false)
@@ -326,7 +324,7 @@
       NtpClient.run_service = run_service
       if !run_service
         NtpClient.synchronize_time = true
-        NtpClient.sync_interval = 15
+        NtpClient.sync_interval = NtpClientClass::DEFAULT_SYNC_INTERVAL
       end
 
       #OK, so we stored the server address
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.22/src/include/ntp-client/dialogs.rb 
new/yast2-ntp-client-3.1.23/src/include/ntp-client/dialogs.rb
--- old/yast2-ntp-client-3.1.22/src/include/ntp-client/dialogs.rb       
2016-04-18 15:55:36.000000000 +0200
+++ new/yast2-ntp-client-3.1.23/src/include/ntp-client/dialogs.rb       
2016-05-09 10:21:22.000000000 +0200
@@ -172,11 +172,7 @@
               VSpacing(),
               Left("secure"),
               VSpacing(),
-              Frame(
-                # TRANSLATORS: UI frame label
-                _("Firewall Settings"),
-                "firewall"
-              )
+              "firewall"
             )
           ),
           VStretch()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.22/src/include/ntp-client/helps.rb 
new/yast2-ntp-client-3.1.23/src/include/ntp-client/helps.rb
--- old/yast2-ntp-client-3.1.22/src/include/ntp-client/helps.rb 2016-04-18 
15:55:36.000000000 +0200
+++ new/yast2-ntp-client-3.1.23/src/include/ntp-client/helps.rb 2016-05-09 
10:21:22.000000000 +0200
@@ -8,6 +8,7 @@
 # $Id$
 module Yast
   module NtpClientHelpsInclude
+    Yast.import "NtpClient"
     def initialize_ntp_client_helps(include_target)
       textdomain "ntp-client"
 
@@ -31,16 +32,14 @@
               "Abort the save procedure by pressing  <b>Abort</b>.\n" +
               "An additional dialog will inform you whether it is safe to do 
so.</p>"
           ),
-        # help text 1/5
+        # help text 1/5, %d is a number of minutes
         "start"              => _(
           "<p><b><big>Start NTP Daemon</big></b><br>\n" +
             "Select whether to start the NTP daemon now and on every system 
boot. \n" +
-            "The NTP daemon resolves host names when initializing. Your\n" +
-            "network connection must be started before the NTP daemon 
starts.</p>\n" +
-           "Selecting <b>Synchronize without Daemon</b> the ntp daemon will 
not be activated. \n" +
-           "The system time will be set periodically. The interval is 
configurable. It is 15 minutes by default.\n " +
-           "You can change this when the system was set up."
-       ),
+           "Selecting <b>Synchronize without Daemon</b> the NTP daemon will 
not be activated\n" +
+           "and the system time will be set periodically by a <i>cron</i> 
script. \n" +
+      "The interval is configurable, by default it is %d minutes."
+           ) % NtpClientClass::DEFAULT_SYNC_INTERVAL,
         # help text 2/5
         "chroot_environment" => _(
           "<p><b><big>Chroot Jail</big></b><br>\n" +
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-ntp-client-3.1.22/src/include/ntp-client/widgets.rb 
new/yast2-ntp-client-3.1.23/src/include/ntp-client/widgets.rb
--- old/yast2-ntp-client-3.1.22/src/include/ntp-client/widgets.rb       
2016-04-18 15:55:36.000000000 +0200
+++ new/yast2-ntp-client-3.1.23/src/include/ntp-client/widgets.rb       
2016-05-09 10:21:22.000000000 +0200
@@ -111,6 +111,9 @@
     def intervalInit(id)
       UI.ChangeWidget(Id("interval"), :Value, NtpClient.sync_interval)
 
+      enabled = UI.QueryWidget(Id("start"), :CurrentButton) == "sync"
+      UI.ChangeWidget(Id("interval"), :Enabled, enabled)
+
       nil
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-ntp-client-3.1.22/src/modules/NtpClient.rb 
new/yast2-ntp-client-3.1.23/src/modules/NtpClient.rb
--- old/yast2-ntp-client-3.1.22/src/modules/NtpClient.rb        2016-04-18 
15:55:36.000000000 +0200
+++ new/yast2-ntp-client-3.1.23/src/modules/NtpClient.rb        2016-05-09 
10:21:22.000000000 +0200
@@ -14,6 +14,12 @@
 
 module Yast
   class NtpClientClass < Module
+
+    # the default synchronization interval in minutes when running in the 
manual
+    # sync mode ("Synchronize without Daemon" option, ntp started from cron)
+    # Note: the UI field currently uses maximum of 60 minutes
+    DEFAULT_SYNC_INTERVAL = 5
+
     def main
       Yast.import "UI"
       textdomain "ntp-client"
@@ -61,7 +67,7 @@
       @synchronize_time = false
 
       # The interval of synchronization in minutes.
-      @sync_interval = 5
+      @sync_interval = DEFAULT_SYNC_INTERVAL
 
       # The cron file name for the synchronization.
       @cron_file = "/etc/cron.d/novell.ntp-synchronize"
@@ -462,7 +468,7 @@
       Builtins.y2milestone("CRONTAB %1", crontab)
       tmp = Ops.get_string(crontab, [0, "events", 0, "active"], "0")
       @synchronize_time = tmp == "1"
-      tmp = Ops.get_string(crontab, [0, "events", 0, "minute"], "*/5")
+      tmp = Ops.get_string(crontab, [0, "events", 0, "minute"], 
"*/#{DEFAULT_SYNC_INTERVAL}")
       Builtins.y2milestone("MINUTE %1", tmp)
       pos = Builtins.regexppos(tmp, "[0-9]+")
       tmp2 = Builtins.substring(
@@ -930,7 +936,7 @@
     def Import(settings)
       settings = deep_copy(settings)
       @synchronize_time = Ops.get_boolean(settings, "synchronize_time", false)
-      @sync_interval = Ops.get_integer(settings, "sync_interval", 5)
+      @sync_interval = Ops.get_integer(settings, "sync_interval", 
DEFAULT_SYNC_INTERVAL)
       @run_service = Ops.get_boolean(settings, "start_at_boot", false)
       @run_chroot = Ops.get_boolean(settings, "start_in_chroot", true)
       # compatibility: configure_dhcp:true translates to ntp_policy:auto


Reply via email to