Mailinglist Archive: yast-commit (396 mails)

< Previous Next >
[yast-commit] r65264 - /branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
Author: gs
Date: Mon Aug 8 12:46:58 2011
New Revision: 65264

URL: http://svn.opensuse.org/viewcvs/yast?rev=65264&view=rev
Log:
correct default value for file_exists,
don't delete whitespaces from comment

Modified:
branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp

Modified: branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp?rev=65264&r1=65263&r2=65264&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp (original)
+++ branches/SuSE-Code-11-SP2-Branch/fcoe-client/src/FcoeClient.ycp Mon Aug 8
12:46:58 2011
@@ -367,7 +367,7 @@
{
map <string, string> status_map = $[];
string content = "";
- boolean file_exists = true;
+ boolean file_exists = false;

if ( vlan_device_name != "")
{
@@ -389,6 +389,8 @@
// (e.g. eth3.200) then set AUTO_VLAN to "no"
list <string> lines = (list<string>)splitstring( content, "\n"
);
lines = maplist( string line, lines, {
+ if ( !String::StartsWith( line, "#" ) ) line =
deletechars( line, " \t" );
+
if ( String::StartsWith( line, "AUTO_VLAN" ) )
{
return "AUTO_VLAN=\"no\"";
@@ -719,7 +721,8 @@

list <string> lines = (list<string>)splitstring( content, "\n"
);
lines = maplist( string line, lines, {
- line = deletechars( line, " \t" );
+ if ( !String::StartsWith( line, "#" ) ) line =
deletechars( line, " \t" );
+
if ( String::StartsWith( line, "FCOE_ENABLE" ) )
{
return sformat( "FCOE_ENABLE=\"%1\"",
card["fcoe_enable"]:"no" );

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

< Previous Next >
This Thread
  • No further messages