On Tue, Apr 10, 2007 at 08:39:46PM +0100, Benji Weber wrote:
Hi,
Is it possible to return an exit code from a YCP module? I've tried returning a value from the top level block but exit code always remains 0.
That should be possible, but only as a boolean information: In
core/liby2/src/genericfrontend.cc line 557 you can see that it's
possible to return an exit code for success and failure. Your
module must return a boolean and depending on that y2base will
exit with 0 or 16 (YCP_ERROR).
ciao Arvin
--
Arvin Schnell,