[Yum-devel] [PATCH] Allow plugins to signal exit status, bump plugin API version to 2.7.

James Antill james at fedoraproject.org
Fri Nov 5 15:32:09 UTC 2010


On Fri, 2010-11-05 at 16:47 +0200, Ville Skyttä wrote:
> Useful for example for downloadonly, BZ 531323.
> ---
>  yum/plugins.py |    5 +++--
>  yummain.py     |    2 +-
>  2 files changed, 4 insertions(+), 3 deletions(-)

 There are two things with this:

1. We have RFE's for us having a documented list of return codes for yum
cli, and what they mean. Letting plugins just do random stuff would make
that less useful (assuming we ever did it). Maybe a better idea is to
have a map of valid errors, and they pass text:
   success  = 0
   error    = 1
   confused = 3
   todo     = 100

2. Might as well add something to stop the message too. 



More information about the Yum-devel mailing list