[Yum-devel] Re: [yum-cvs] yum-utils yumdownloader.py,1.3,1.4

seth vidal skvidal at phy.duke.edu
Wed Apr 20 00:05:00 UTC 2005


On Wed, 2005-04-20 at 07:21 +1000, Menno Smits wrote:
> Gijs Hollestelle wrote:
> 
> > When I thought of this there was no plugin system yet, now that there
> > is I agree that a plugin is a better way to implement this, I have
> > created a 3 line plugin that sys.exist()'s postdownload.
> > 
> > This works, but is there a way to let a plugin add a command line
> > option? Otherwise it would be pretty inconviniant to use this as
> > --download-only would require editing the plugin config file every
> > time it was needed and disabling it again afterwards.
> 
> Allowing plugins to register command line options is a TODO (see the top 
> of plugins.py).  I want to get this done in the next couple of days.
> 

I've been thinking about that one a bit - and we might need to consider
migrating to OptionParser for the cli parsing instead of getopt to add
options in effectively.

That in mind we'll need to make sure we can preserver left-to-right
processing for things like --disablerepo=* --enablerepo=somerepo

-sv







More information about the Yum-devel mailing list