[Yum] Changing user agent string
Dan Christian
dac at proofpoint.com
Fri Mar 26 18:56:33 UTC 2004
I just couldn't leave well enough alone. I actually want to be able to
change the string on the fly when installed as an RPM (no source).
So I added it to yum.conf as "useragentstring". See the attached patch
and tell my what you think.
-Dan
seth vidal wrote:
>On Thu, 2004-03-25 at 18:25 -0800, Dan Christian wrote:
>
>
>
>>Is there a way to change the user agent string?
>>
>>Some people severely limit which agents are allowed through a proxy.
>>
>>It seems to be set in clientStuff.py:35:
>># it would be nice to make this slurp the REAL version from somewhere :)
>>urlgrabber.set_user_agent("Yum/2.X")
>>
>>
>>
>
>
>edit that line. :)
>
>-sv
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.baseurl.org/pipermail/yum/attachments/20040326/76bec5f2/attachment-0001.htm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: yum-agentstring.patch
Url: http://lists.baseurl.org/pipermail/yum/attachments/20040326/76bec5f2/attachment-0001.diff
More information about the Yum
mailing list