• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yast / yast-ntp-client / 3618557524

pending completion
3618557524

Pull #173

github

Unknown Committer
Unknown Commit Message
Pull Request #173: WIP: Updated ntp sources handling

166 of 166 new or added lines in 5 files covered. (100.0%)

931 of 1445 relevant lines covered (64.43%)

20.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/include/ntp-client/misc.rb
1
# File:  include/ntp-client/misc.ycp
2
# Package:  Configuration of ntp-client
3
# Summary:  Miscelanous functions for configuration of ntp-client.
4
# Authors:  Jiri Srain <jsrain@suse.cz>
5
#
6
# $Id$
7
module Yast
×
8
  module NtpClientMiscInclude
×
9
    def initialize_ntp_client_misc(_include_target)
×
10
      Yast.import "UI"
×
11

12
      textdomain "ntp-client"
×
13

14
      Yast.import "CWMFirewallInterfaces"
×
15
      Yast.import "IP"
×
16
      Yast.import "Popup"
×
17
      Yast.import "Progress"
×
18
      Yast.import "Service"
×
19
      Yast.import "NtpClient"
×
20

21
      # FIXME: this is quite ugly ... the whole checkinf if something was changed
22
      # ... but it works :-)
23
      @sync_record_modified = false
×
24
    end
×
25

26
    # If modified, ask for confirmation
27
    # @return true if abort is confirmed
28
    def ReallyAbort
×
29
      !NtpClient.modified || Popup.ReallyAbort(true)
×
30
    end
×
31

32
    # Check for pending Abort press
33
    # @return true if pending abort
34
    def PollAbort
×
35
      UI.PollInput == :abort
×
36
    end
×
37
  end
×
38
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc