Skip to content

Commit

Permalink
Merge pull request #187 from yast/bnc_960059
Browse files Browse the repository at this point in the history
Bnc 960059
  • Loading branch information
schubi2 committed Jan 20, 2016
2 parents 135f62f + 1ae3bf9 commit b1d2093
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/autoyast2.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 20 10:12:35 CET 2016 - schubi@suse.de

- Adapting sntp call to new API (version 4.2.8).
(bnc#960059)
- 3.1.101.12

-------------------------------------------------------------------
Tue Jan 19 15:19:04 CET 2016 - schubi@suse.de

Expand Down
3 changes: 2 additions & 1 deletion package/autoyast2.spec
Expand Up @@ -17,7 +17,7 @@


Name: autoyast2
Version: 3.1.101.11
Version: 3.1.101.12
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down Expand Up @@ -58,6 +58,7 @@ Requires: yast2-storage >= 3.1.59
Requires: yast2-transfer >= 2.21.0
Requires: yast2-xml
Conflicts: yast2-installation < 3.1.158
Conflicts: ntp < 4.2.8

Provides: yast2-config-autoinst
Provides: yast2-module-autoinst
Expand Down
2 changes: 1 addition & 1 deletion src/modules/AutoinstGeneral.rb
Expand Up @@ -420,7 +420,7 @@ def NtpSync
# TRANSLATORS: %s is the name of the ntp server
_("Syncing time with %s.") % ntp_server
)
ret = SCR.Execute(path(".target.bash"), "/usr/sbin/sntp -t 2 -s #{ntp_server}")
ret = SCR.Execute(path(".target.bash"), "/usr/sbin/sntp -t 2 -S #{ntp_server}")
if ret > 0
Report.Error(_("Time syncing failed."))
else
Expand Down
2 changes: 1 addition & 1 deletion test/AutoinstGeneral_test.rb
Expand Up @@ -18,7 +18,7 @@

expect(Yast::SCR).to receive(:Execute).with(
path(".target.bash"),
"/usr/sbin/sntp -t 2 -s #{Yast::AutoinstGeneral.mode["ntp_sync_time_before_installation"]}").and_return(0)
"/usr/sbin/sntp -t 2 -S #{Yast::AutoinstGeneral.mode["ntp_sync_time_before_installation"]}").and_return(0)
expect(Yast::SCR).to receive(:Execute).with(
path(".target.bash"),"/sbin/hwclock --systohc").and_return(0)

Expand Down

0 comments on commit b1d2093

Please sign in to comment.