[yast-commit] r64152 - in /trunk/network: VERSION package/yast2-network.changes src/lan/YaPI/NETWORK.pm

Author: mvidner Date: Mon May 30 16:42:45 2011 New Revision: 64152 URL: http://svn.opensuse.org/viewcvs/yast?rev=64152&view=rev Log: YaPI::NETWORK::Write: also update /etc/hosts, for hostname -f (bnc#694283#c8) The bug is most apparent in WebYaST where it will show the old hostname. Modified: trunk/network/VERSION trunk/network/package/yast2-network.changes trunk/network/src/lan/YaPI/NETWORK.pm Modified: trunk/network/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/VERSION?rev=64152&r1=6415... ============================================================================== --- trunk/network/VERSION (original) +++ trunk/network/VERSION Mon May 30 16:42:45 2011 @@ -1 +1 @@ -2.20.11 +2.20.12 Modified: trunk/network/package/yast2-network.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/package/yast2-network.cha... ============================================================================== --- trunk/network/package/yast2-network.changes (original) +++ trunk/network/package/yast2-network.changes Mon May 30 16:42:45 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon May 30 16:40:55 CEST 2011 - mvidner@suse.cz + +- WebYaST: also update /etc/hosts, for hostname -f (bnc#694283#c8) +- 2.20.12 + +------------------------------------------------------------------- Thu May 26 15:44:14 UTC 2011 - coolo@novell.com - Switch is not used, so don't require it (removed from perl 5.13.1) Modified: trunk/network/src/lan/YaPI/NETWORK.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/lan/YaPI/NETWORK.pm?r... ============================================================================== --- trunk/network/src/lan/YaPI/NETWORK.pm (original) +++ trunk/network/src/lan/YaPI/NETWORK.pm Mon May 30 16:42:45 2011 @@ -8,6 +8,7 @@ # ------------------- imported modules YaST::YCP::Import ("LanItems"); YaST::YCP::Import ("Hostname"); +YaST::YCP::Import ("Host"); YaST::YCP::Import ("DNS"); YaST::YCP::Import ("Routing"); # ------------------------------------- @@ -109,6 +110,9 @@ DNS->dhcp_hostname($args->{'hostname'}->{'dhcp_hostname'}) if (defined $args->{'hostname'}->{'dhcp_hostname'}); DNS->modified(1); DNS->Write(); + Host->Read(); + Host->EnsureHostnameResolvable(); + Host->Write(); return $ret; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn2.opensuse.org