[yast-commit] r62449 - in /trunk/autoinstallation: package/autoyast2.changes src/dialogs/ask.ycp
Author: ug Date: Mon Aug 30 15:10:22 2010 New Revision: 62449 URL: http://svn.opensuse.org/viewcvs/yast?rev=62449&view=rev Log: boolean-value for path in ask-dialog fixed Modified: trunk/autoinstallation/package/autoyast2.changes trunk/autoinstallation/src/dialogs/ask.ycp Modified: trunk/autoinstallation/package/autoyast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/package/autoyast... ============================================================================== --- trunk/autoinstallation/package/autoyast2.changes (original) +++ trunk/autoinstallation/package/autoyast2.changes Mon Aug 30 15:10:22 2010 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Aug 30 15:09:51 CEST 2010 - ug@suse.de + +- setting a boolean via <path> does not work (regression from the + fix bnc#572166) + +------------------------------------------------------------------- Mon Aug 30 13:06:11 CEST 2010 - ug@suse.de - potential endless reboot during online update fixed Modified: trunk/autoinstallation/src/dialogs/ask.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/dialogs/ask.... ============================================================================== --- trunk/autoinstallation/src/dialogs/ask.ycp (original) +++ trunk/autoinstallation/src/dialogs/ask.ycp Mon Aug 30 15:10:22 2010 @@ -227,8 +227,6 @@ 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); @@ -249,8 +247,13 @@ }); if( file != "" ) { - if( ! SCR::Write (.target.string, file, sformat("%1",val)) ) - y2milestone("writing answer to %1 failed",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( 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