Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57915 - in /trunk/network: package/yast2-network.changes src/services/host.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Tue, 07 Jul 2009 14:00:49 -0000
  • Message-id: <E1MOBE1-0002b0-5P@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Tue Jul 7 16:00:48 2009
New Revision: 57915

URL: http://svn.opensuse.org/viewcvs/yast?rev=57915&view=rev
Log:
Editing /etc/hosts via host module adjusted to
cope with hosts with empty alias (do not replace
those with 'nil') (bnc#513033)


Modified:
trunk/network/package/yast2-network.changes
trunk/network/src/services/host.ycp

Modified: trunk/network/package/yast2-network.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/package/yast2-network.changes?rev=57915&r1=57914&r2=57915&view=diff
==============================================================================
--- trunk/network/package/yast2-network.changes (original)
+++ trunk/network/package/yast2-network.changes Tue Jul 7 16:00:48 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Jul 7 14:46:38 CEST 2009 - kmachalkova@xxxxxxx
+
+- Editing /etc/hosts via host module adjusted to cope with hosts
+ with empty alias (do not replace those with 'nil') (bnc#513033)
+
+-------------------------------------------------------------------
Mon Jun 29 11:50:16 CEST 2009 - mzugec@xxxxxxx

- linuxrc DHCPTimeout -> sysconfig/network.WAIT_FOR_INTERFACES

Modified: trunk/network/src/services/host.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/src/services/host.ycp?rev=57915&r1=57914&r2=57915&view=diff
==============================================================================
--- trunk/network/src/services/host.ycp (original)
+++ trunk/network/src/services/host.ycp Tue Jul 7 16:00:48 2009
@@ -83,8 +83,8 @@
}
foreach (string s, names, {

- string name = regexpsub(s, "^([^ \t]+)[ \t].*$", "\\1");
- string aliases = regexpsub(s, "^[^ \t]+[ \t]+(.*)[ \t]*$", "\\1");
+ string name = regexpsub(s, "^([^ \t]+)[ \t]*.*$", "\\1");
+ string aliases = regexpsub(s, "^[^ \t]+[ \t]*(.*)[ \t]*$", "\\1");

term item = `item(`id(size(table_items)), host,
Punycode::DecodeDomainName(name),
Punycode::DecodePunycodes( [aliases] )[0]:"");

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages