Re: Can plugin set exit code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





2011/3/14 Miroslav Suchà <msuchy@xxxxxxxxxx>
I'm working on:
https://bugzilla.redhat.com/show_bug.cgi?id=658210
and I wonder. Is it even possible to set exit code from yum plugin?

I find that I can register my function to atexit.register() or even use
close hook. But the question is can I set exit code there?
I find that I can use there
Âsys.exit(-1)
but that is not nice, since I will not give chance to other plugins... :(

--
Miroslav Suchy
Red Hat Satellite Engineering
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

A plugin can raiseÂPluginYumExit and yum will exit with RC=1, but this a 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 :)

Tim


_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux