[Yum] HTTP/FTP Authentication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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




[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux