Hello community,
here is the log from the commit of package yast2-network
checked in at Sat Jan 27 12:41:17 CET 2007.
--------
--- yast2-network/yast2-network.changes 2007-01-16 13:44:37.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-network/yast2-network.changes 2007-01-27 12:06:48.000664000 +0100
@@ -1,0 +2,7 @@
+Fri Jan 26 13:18:53 CET 2007 - kmachalkova@suse.cz
+
+- Use random hostname also during autoinstallation (if none found
+ in install.inf or /etc/hosts)(#165269)
+- 2.15.10
+
+-------------------------------------------------------------------
Old:
----
yast2-network-2.15.9.tar.bz2
New:
----
yast2-network-2.15.10.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-network.spec ++++++
--- /var/tmp/diff_new_pack.l18443/_old 2007-01-27 12:40:26.000000000 +0100
+++ /var/tmp/diff_new_pack.l18443/_new 2007-01-27 12:40:26.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-network (Version 2.15.9)
+# spec file for package yast2-network (Version 2.15.10)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-network
-Version: 2.15.9
+Version: 2.15.10
Release: 1
License: GNU General Public License (GPL)
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-network-2.15.9.tar.bz2
+Source0: yast2-network-2.15.10.tar.bz2
prefix: /usr
# should be required by devtools
BuildRequires: perl-XML-Writer pkgconfig
@@ -51,7 +51,7 @@
Michal Svec
%prep
-%setup -n yast2-network-2.15.9
+%setup -n yast2-network-2.15.10
%build
%{prefix}/bin/y2tool y2autoconf
@@ -107,6 +107,10 @@
/usr/share/YaST2/schema/autoyast/rnc/proxy.rnc
%changelog -n yast2-network
+* Fri Jan 26 2007 - kmachalkova@suse.cz
+- Use random hostname also during autoinstallation (if none found
+ in install.inf or /etc/hosts)(#165269)
+- 2.15.10
* Tue Jan 16 2007 - kmachalkova@suse.cz
- Avoid displaying empty strings in internet test dialog (#220813,
[#223498])
++++++ yast2-network-2.15.9.tar.bz2 -> yast2-network-2.15.10.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-network-2.15.9/src/modules/Lan.ycp new/yast2-network-2.15.10/src/modules/Lan.ycp
--- old/yast2-network-2.15.9/src/modules/Lan.ycp 2007-01-16 11:39:52.000000000 +0100
+++ new/yast2-network-2.15.10/src/modules/Lan.ycp 2007-01-26 13:31:45.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: Network card data
* Authors: Michal Svec
*
- * $Id: Lan.ycp 35214 2007-01-11 07:13:56Z mzugec $
+ * $Id: Lan.ycp 35653 2007-01-26 12:31:43Z kmachalkova $
*
* Representation of the configuration of network cards.
* Input and output routines.
@@ -1797,9 +1797,20 @@
y2milestone ("hostname from dns");
/* try to get hostname from the network */
string hnent = Detection::ResolveIP(ipaddr);
- list hnsplit = Hostname::SplitFQ(hnent);
- DNS::ReadHostDomain (hnsplit[0]:"", hnsplit[1]:"");
+ //last resort - generate random hostname (#165269)
+ if (hnent == "" )
+ {
+ y2milestone("random hostname");
+ srandom ();
+ DNS::ReadHostDomain("linux-" + String::Random(4), "site");
+ }
+ else
+ {
+ list hnsplit = Hostname::SplitFQ(hnent);
+ DNS::ReadHostDomain (hnsplit[0]:"", hnsplit[1]:"");
+ }
+
}
return true;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-network-2.15.9/VERSION new/yast2-network-2.15.10/VERSION
--- old/yast2-network-2.15.9/VERSION 2007-01-16 11:39:59.000000000 +0100
+++ new/yast2-network-2.15.10/VERSION 2007-01-26 13:18:48.000000000 +0100
@@ -1 +1 @@
-2.15.9
+2.15.10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org