Author: mvidner Date: Fri Apr 11 10:47:53 2008 New Revision: 46385 URL: http://svn.opensuse.org/viewcvs/yast?rev=46385&view=rev Log: Suggest ntp.$domain as the local server (fate#302863). Modified: trunk/ntp-client/VERSION trunk/ntp-client/package/yast2-ntp-client.changes trunk/ntp-client/src/widgets.ycp trunk/ntp-client/yast2-ntp-client.spec.in Modified: trunk/ntp-client/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/ntp-client/VERSION?rev=46385&... ============================================================================== --- trunk/ntp-client/VERSION (original) +++ trunk/ntp-client/VERSION Fri Apr 11 10:47:53 2008 @@ -1 +1 @@ -2.16.6 +2.16.7 Modified: trunk/ntp-client/package/yast2-ntp-client.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/ntp-client/package/yast2-ntp-clie... ============================================================================== --- trunk/ntp-client/package/yast2-ntp-client.changes (original) +++ trunk/ntp-client/package/yast2-ntp-client.changes Fri Apr 11 10:47:53 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Apr 11 10:47:33 CEST 2008 - mvidner@suse.cz + +- Suggest ntp.$domain as the local server (fate#302863). +- 2.16.7 + +------------------------------------------------------------------- Wed Apr 9 13:38:32 CEST 2008 - mvidner@suse.cz - Read the whole configuration of NTP (not only ntp.conf Modified: trunk/ntp-client/src/widgets.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ntp-client/src/widgets.ycp?rev=46... ============================================================================== --- trunk/ntp-client/src/widgets.ycp (original) +++ trunk/ntp-client/src/widgets.ycp Fri Apr 11 10:47:53 2008 @@ -32,7 +32,7 @@ string peer_type_selected = nil; /* List of NTP servers already found */ -list <string> found_servers_cache = []; +list <string> found_servers_cache = nil; /* The 'Current Record' when NTP is being initialized, see bug 177575 */ map <string, any> selected_record_during_init = $[]; @@ -1089,6 +1089,17 @@ void FoundServersInit (string id) { list <term> items = []; + // fate#302863: suggest ntp.$domain + if (found_servers_cache == nil) { + string guessed = "ntp." + Hostname::CurrentDomain (); + if (NtpClient::TestNtpServer (guessed, `transient_popup)) { + found_servers_cache = [ guessed ]; + } + else { + found_servers_cache = []; + } + } + foreach (string server, found_servers_cache, { items = add (items, `item(`id(server), server)); }); Modified: trunk/ntp-client/yast2-ntp-client.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/ntp-client/yast2-ntp-client.spec.... ============================================================================== --- trunk/ntp-client/yast2-ntp-client.spec.in (original) +++ trunk/ntp-client/yast2-ntp-client.spec.in Fri Apr 11 10:47:53 2008 @@ -4,8 +4,8 @@ BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite BuildRequires: yast2-country-data #SLPAPI.pm -# yast2/NetworkDevices -> yast2/NetworkInterfaces -Requires: yast2 >= 2.16.23 +# Hostname::CurrentDomain +Requires: yast2 >= 2.16.48 Requires: yast2-country-data BuildArchitectures: noarch -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org