Author: ug Date: Fri Jul 22 09:56:36 2011 New Revision: 64933 URL: http://svn.opensuse.org/viewcvs/yast?rev=64933&view=rev Log: passing a boolean to an ask-script did not work Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/dialogs/ask.ycp Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes?rev=64933&r1=64932&r2=64933&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes Fri Jul 22 09:56:36 2011 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Fri Jul 22 09:54:01 CEST 2011 - ug@suse.de + +- passing a type=boolean to an ask-script via $VAL did not work + +------------------------------------------------------------------- Tue Jul 19 14:35:45 CEST 2011 - ug@suse.de - fixed logging for modules that use a list as data structure Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/dialogs/ask.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/dialogs/ask.ycp?rev=64933&r1=64932&r2=64933&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/dialogs/ask.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/dialogs/ask.ycp Fri Jul 22 09:56:36 2011 @@ -266,11 +266,15 @@ SCR::Execute (.target.mkdir, current_logdir); } string executionString = ""; - if( script["environment"]:false ) + if( script["environment"]:false ) { + if( ask["type"]:"string" == "boolean" ) { + val = sformat("%1", ( (boolean)val ? "true" : "false" )); + } executionString = sformat("VAL=\"%5\" /bin/sh %1 %2 2&> %3/%4.log ", debug, scriptPath, current_logdir, scriptName, AutoinstConfig::ShellEscape((string)val)); - else + } else { executionString = sformat("/bin/sh %1 %2 2&> %3/%4.log ", debug, scriptPath, current_logdir, scriptName ); + } y2milestone("Script Execution command: %1", executionString ); runAgain = runAgain + (integer)SCR::Execute (.target.bash, executionString); if( script["rerun_on_error"]:false == false ) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org