Author: ug Date: Thu Jan 10 15:44:49 2008 New Revision: 43534 URL: http://svn.opensuse.org/viewcvs/yast?rev=43534&view=rev Log: rerun_on_error fix Modified: trunk/autoinstallation/doc/CreateProfileDetails.xml trunk/autoinstallation/src/dialogs/ask.ycp Modified: trunk/autoinstallation/doc/CreateProfileDetails.xml URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/doc/CreateProfileDetails.xml?rev=43534&r1=43533&r2=43534&view=diff ============================================================================== --- trunk/autoinstallation/doc/CreateProfileDetails.xml (original) +++ trunk/autoinstallation/doc/CreateProfileDetails.xml Thu Jan 10 15:44:49 2008 @@ -2684,7 +2684,7 @@ <entry>optional (default is "false"). This value needs feedback to be turned on too.</entry> </row> <row> - <entry>rerun_on_error</entry> + <entry>rerun_on_error (available since openSUSE 11.0)</entry> <entry>a boolean that keeps the dialog open until the script has an exit code of 0 (zero). So you can parse and check the answers the user gave in the script and popup an error with the "feedback" option. <para><screen><rerun_on_error config:type="boolean">true</rerun_on_error></screen></para></entry> <entry>optional (default is "false"). This value should be used together with the feedback option.</entry> Modified: trunk/autoinstallation/src/dialogs/ask.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/src/dialogs/ask.ycp?rev=43534&r1=43533&r2=43534&view=diff ============================================================================== --- trunk/autoinstallation/src/dialogs/ask.ycp (original) +++ trunk/autoinstallation/src/dialogs/ask.ycp Thu Jan 10 15:44:49 2008 @@ -186,7 +186,7 @@ else executionString = sformat("/bin/sh %1 %2 2&> %3/%4.log ", debug, scriptPath, current_logdir, scriptName ); y2milestone("Script Execution command: %1", executionString ); - runAgain = (integer)SCR::Execute (.target.bash, executionString); + runAgain = runAgain + (integer)SCR::Execute (.target.bash, executionString); if( script["rerun_on_error"]:false == false ) runAgain = 0; boolean showFeedback = script["feedback"]:false; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org