Re: exception handling regarding yum plugins

Hannes Frederic Sowa <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
On Sat, Aug 7, 2010 at 7:26 PM, seth vidal <[email protected]> wrote:
> That's cool. there are now history plugin hooks that might help you -
> they're in yum 3.2.28.

Cool - I will have a look at them.

> also - ultimately if something aborts the whole process then yum plugins
> can kill things off.
>
> suggestions?

I thought about letting PluginYumExit cancel the yum operation, that's alright.
If some other Exception happens it should be catched and logged but not
kill of the other yum-plugins. It depends how you trust the yum-plugins.

Currently I am not too much into the yum-codebase. But if I see it correctly
the plugin-exceptions kill of yum before running verifyTransaction. Either
protect the codepath there that verifyTransaction is always called or the
function call could be pushed up.

Hannes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.