Hi Saurabh,

On Thu, 2010-04-22 at 16:06 +0530, Saurabh Vyas wrote:
> Bug-id : pkgsend generate traceback when bundle doesn't exist
> webrev : http://cr.opensolaris.org/~saurabhv/fix-15646/

Rather than just printing an error message inside gen_actions() and
continuing, you should find a way to have trans_generate() detect the
error and return a non-zero exit code back to main_func()

I'd suggest raising an exception from gen_actions for this case,
handling it in trans_generate(), printing the exception message, then
returning a non-zero exit code.

You also need to include a test case for this bug
in ./src/tests/cli/t_pkgsend.py

        cheers,
                        tim


_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to