Mailinglist Archive: yast-commit (1224 mails)
| < Previous | Next > |
[yast-commit] r59809 - in /branches/SuSE-Code-11-SP1-Branch/yast2: library/types/src/Hostname.ycp package/yast2.changes
- From: kmachalkova@xxxxxxxxxxxxxxxx
- Date: Thu, 26 Nov 2009 17:22:28 -0000
- Message-id: <E1NDi32-0005eX-6a@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Thu Nov 26 18:22:27 2009
New Revision: 59809
URL: http://svn.opensuse.org/viewcvs/yast?rev=59809&view=rev
Log:
strip trailing \n correctly
Modified:
branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp
branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes
Modified: branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp?rev=59809&r1=59808&r2=59809&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp
(original)
+++ branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp Thu
Nov 26 18:22:27 2009
@@ -155,9 +155,11 @@
}
else
{
- fqhostname = String::FirstChunk( hostname_data["stdout"]:"", "\n");
+ fqhostname = hostname_data["stdout"]:"";
}
+ fqhostname = String::FirstChunk( fqhostname, "\n");
+
y2debug("Current FQDN: %1", fqhostname);
return fqhostname;
}
Modified: branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes?rev=59809&r1=59808&r2=59809&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes (original)
+++ branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes Thu Nov 26
18:22:27 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Nov 26 18:10:42 CET 2009 - kmachalkova@xxxxxxx
+
+- Fixed striping trailing \n from Hostname::CurrentHostname()
+ (bnc#553213)
+
+-------------------------------------------------------------------
Thu Nov 26 13:40:24 CET 2009 - locilka@xxxxxxx
- Fixed access rights for /etc/install.inf (bnc #500124)
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Date: Thu Nov 26 18:22:27 2009
New Revision: 59809
URL: http://svn.opensuse.org/viewcvs/yast?rev=59809&view=rev
Log:
strip trailing \n correctly
Modified:
branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp
branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes
Modified: branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp?rev=59809&r1=59808&r2=59809&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp
(original)
+++ branches/SuSE-Code-11-SP1-Branch/yast2/library/types/src/Hostname.ycp Thu
Nov 26 18:22:27 2009
@@ -155,9 +155,11 @@
}
else
{
- fqhostname = String::FirstChunk( hostname_data["stdout"]:"", "\n");
+ fqhostname = hostname_data["stdout"]:"";
}
+ fqhostname = String::FirstChunk( fqhostname, "\n");
+
y2debug("Current FQDN: %1", fqhostname);
return fqhostname;
}
Modified: branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes?rev=59809&r1=59808&r2=59809&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes (original)
+++ branches/SuSE-Code-11-SP1-Branch/yast2/package/yast2.changes Thu Nov 26
18:22:27 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Nov 26 18:10:42 CET 2009 - kmachalkova@xxxxxxx
+
+- Fixed striping trailing \n from Hostname::CurrentHostname()
+ (bnc#553213)
+
+-------------------------------------------------------------------
Thu Nov 26 13:40:24 CET 2009 - locilka@xxxxxxx
- Fixed access rights for /etc/install.inf (bnc #500124)
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |