[Yum-devel] new plugin slots

James Bowes jbowes at redhat.com
Thu Dec 7 13:10:11 UTC 2006


Tim Lauridsen wrote:
>> the problems with this is that the rpm transaction callback in yum
>> lives in the cli-space and therefore makes a poor fit for a yum-library
>> level plugin. Any thoughts/suggestions on this?
>>
>>   
> In yumex i have split the rpm callback into 2 classes,
> 
> one base class there contains the basic stuff and it turns the big if 
> statement into
> calls to class methods, so that different rpm callback actions can be 
> overloaded by a child class.

I think it would be better to use composition instead of inheritance 
here, so we can ensure that the plugin hooks always exist.

-James



More information about the Yum-devel mailing list