[Yum-devel] yum plugin only triggering in postresolve_hook

Axel Thimm Axel.Thimm at ATrpms.net
Sat Dec 9 18:32:15 UTC 2006


Hi,

I have written a yum plugin that checks for kmdl availability for
installed or to be installed-in-the-current-transaction kernels.

The code works nicely in postresolve_hook where I can access all info
I need, e.g. direct and indirect kernel installs. The drawback is that
when "yum update" decides that there is nothing to update, the plugin
gets never called.

For example

a) a new kernel is released, no kmdl support yet
b) user does yum update, only kernel gets installed
c) kmdls appear
d) subsequent yum update never get as far as postresolve_hook

E.g. the user needs to wait for the next "real" update to happen to
trigger the postresolve hook.

Now I can start copying parts of the plugin to earlier yum hooks, or
perhaps I can trigger yum somehow to always go to postresolve_hook
when an update operation is invoced.

What's the better way of the two and how do I go along?

Thanks!
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20061209/5dc5e190/attachment.pgp 


More information about the Yum-devel mailing list