Author: jdsn Date: Tue Nov 13 16:42:50 2007 New Revision: 42029 URL: http://svn.opensuse.org/viewcvs/yast?rev=42029&view=rev Log: type checking return value (#325916) Modified: trunk/x11/src/x11.ycp Modified: trunk/x11/src/x11.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/x11/src/x11.ycp?rev=42029&r1=42028&r2=42029&view=diff ============================================================================== --- trunk/x11/src/x11.ycp (original) +++ trunk/x11/src/x11.ycp Tue Nov 13 16:42:50 2007 @@ -115,5 +115,18 @@ any ret = CommandLine::Run ( cmdlineDescription ); -return (symbol)ret; + +// CommandLine::Run returns <any>, so we have to interpret what to return +if (is(ret, symbol)) { + return (symbol)ret; +} +else if (is(ret, boolean)) { + // true equals `next, false will be `auto in order to not block the workflow + return (boolean)ret? `next:`auto; +} +else { + // values will be interpreted as success + return `next; +} + } // end -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org