[Yum] HTTP/FTP Authentication
skvidal at phy.duke.edu
Wed Jul 30 13:37:39 UTC 2003
> OK, I feel a little silly. I didn't know that was available at all.
> I agree. Probably the cleanest way to do it is to push it in from
> yummain. You could do that in two ways:
> 1) by importing urlgrabber from within yummain (making yummain depend
> on urlgrabber directly is no big deal because it already depends on
> it indirectly via clientStuff)
> # <within yummain.py>
> import urlgrabber
> urlgrabber.set_user_agent('Yum/%s' % __version__)
Only trick is how to get urlgrabber into the clientStuff namespace then.
I was thinking conf.version = __version__ in yummain
then clientstuff can use version from the conf object.
More information about the Yum