[packagekit] [PATCH] set packagekitd proxy environment variables

Daniel Nicoletti dantti85-pk at yahoo.com.br
Mon Sep 13 14:42:57 PDT 2010


>On 13 September 2010 16:09, Michael Meeks <michael.meeks at novell.com> wrote:
>>        Sure. I wonder if making backend_setup_network a backend method (cf.
>> pk-backed-yum) and calling it in the core before each of the relevant
>> methods might work ? though I guess that method is called inside many of
>> the thread worker functions so perhaps not. Anyhow,
>
>I think a general per-transaction ->setup() vfunc might be a very
>useful thing indeed, e.g:
>
>_init()
>
>_setup()
>_get_updates()
>
>_setup()
>_get_details()
>
>_finalize()
>
>If this is what you mean, then patches welcome :-)

I'm not sure I followed it right, but passing the task of setting a proxy to 
PackageKit
will break others backends, also the way it is now give the backends more 
control
to do what the distro decides it's best, for example if the apt backend sees 
that
the proxy was set into /etc/apt/apt.d then we ignore the user proxy, since root
knows better which proxy to use, if all backends get http_proxy set then we will
have to work around this issue.

Best,
DAniel.


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20100913/3c4906be/attachment-0004.htm>


More information about the PackageKit mailing list