[Yum] HTTP/FTP Authentication
seth vidal
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
> __version__='2.0'
> 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.
-sv
More information about the Yum
mailing list