[Yum-devel] Plugin reposetup slot

seth vidal skvidal at phy.duke.edu
Sun Mar 27 04:20:35 UTC 2005


On Sun, 2005-03-27 at 13:15 +1000, Menno Smits wrote:
> I'm wondering where the "reposetup" slot (mainly to allow plugins to 
> enable and disable plugins) should be called from. I was thinking at the 
> top of doRepoSetup() in yum/__init__.py, but this method doesn't get 
> called. Instead doRepoSetup() in cli.py is used, but we don't want 
> plugin hooks outside of the yum module.

If we call it at the top of doRepoSetup() in __init__ and in cli it
would be fine. Cconsidering that cli is a subclass of __init__ I don't
think that's unreasonable and it's a good practice for other folks
writing their own wrapper around YumBase

-sv





More information about the Yum-devel mailing list