[yast-commit] r62447 - /branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp
Author: ug Date: Mon Aug 30 15:02:30 2010 New Revision: 62447 URL: http://svn.opensuse.org/viewcvs/yast?rev=62447&view=rev Log: rever patch - from branch Modified: branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp Modified: branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/autoin... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/autoinstallation/src/dialogs/ask.ycp Mon Aug 30 15:02:30 2010 @@ -185,6 +185,8 @@ any val = UI::QueryWidget(`id(entry_id), `Value); if( ask["type"]:"string" == "integer" ) { val = tointeger((string)val); + } else if( ask["type"]:"string" == "boolean" ) { + val = ( (boolean)val ? "true" : "false" ); } if( ask["password"]:false == true ) { string pass2 = (string)UI::QueryWidget(`id(`pass2), `Value); @@ -205,13 +207,8 @@ }); if( file != "" ) { - if( ask["type"]:"string" == "boolean" ) { - if( ! SCR::Write (.target.string, file, sformat("%1", ( (boolean)val ? "true" : "false" )))) - y2milestone("writing answer to %1 failed",file); - } else { - if( ! SCR::Write (.target.string, file, sformat("%1",val)) ) - y2milestone("writing answer to %1 failed",file); - } + if( ! SCR::Write (.target.string, file, sformat("%1",val)) ) + y2milestone("writing answer to %1 failed",file); } if( script != $[] ) { string scriptName = script["filename"]:"ask_script.sh"; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
ug@svn2.opensuse.org