Re: [Yum-devel] [PATCH 1/2] Allow changing the exit code on non-fatal errors.

2012-03-06 Thread James Antill
On Tue, 2012-03-06 at 13:06 +0100, Zdeněk Pavlas wrote: > Currently, doCommand() may return result=1 to indicate a fatal error, > or result=0/2 to signal success. Minor errors are usually handled just > by printing an error message, but they can't change the exit code. > > Use a read-write attrib

[Yum-devel] [PATCH 1/2] Allow changing the exit code on non-fatal errors.

2012-03-06 Thread Zdeněk Pavlas
Currently, doCommand() may return result=1 to indicate a fatal error, or result=0/2 to signal success. Minor errors are usually handled just by printing an error message, but they can't change the exit code. Use a read-write attribute instead of 0 as the exit code, so that minor errors can change