[Yum] Can plugin set exit code?

Miroslav Suchý msuchy at redhat.com
Tue Mar 15 12:07:22 UTC 2011


On 03/14/2011 07:28 PM, tim.lauridsen at gmail.com wrote:
> A plugin can raise PluginYumExit and yum will exit with RC=1, but this a

Yes, but that will terminate application immediately. Which I do not
want to.

> bad thing to do in a TYPE_CORE plugin
> They are not supposed to exit yum IMO. Because it will break yum API
> applications.
> 
> sys.exit(-1) in a plugin is so BAAAAAAAAAAAAADDDDD :)
I know...

I filed:
https://bugzilla.redhat.com/show_bug.cgi?id=684859

-- 
Miroslav Suchy
Red Hat Satellite Engineering


More information about the Yum mailing list