<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'Courier New', courier, monaco, monospace, sans-serif;font-size:10pt"><div></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; ">&gt;On 13 September 2010 16:09, Michael Meeks &lt;<a ymailto="mailto:michael.meeks@novell.com" href="mailto:michael.meeks@novell.com">michael.meeks@novell.com</a>&gt; wrote:</span></div><div style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;Sure. I wonder if making backend_setup_network a backend method (cf.<br>&gt;&gt; pk-backed-yum) and calling it in the core before each of the relevant<br>&gt;&gt; methods might work ? though I guess that method is called inside many of<br>&gt;&gt; the thread worker functions so perhaps not.
 Anyhow,<br>&gt;<br>&gt;I think a general per-transaction -&gt;setup() vfunc might be a very<br>&gt;useful thing indeed, e.g:<br>&gt;<br>&gt;_init()<br>&gt;<br>&gt;_setup()<br>&gt;_get_updates()<br>&gt;<br>&gt;_setup()<br>&gt;_get_details()<br>&gt;<br>&gt;_finalize()<br>&gt;<br>&gt;If this is what you mean, then patches welcome :-)<br><br>I'm not sure I followed it right, but passing the task of setting a proxy to PackageKit</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">will break others backends, also the way it is now give the backends more control</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">to do what the distro decides it's best, for example if the apt backend sees that</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">the proxy was set into /etc/apt/apt.d then we ignore the user proxy, since root</div><div style="font-family:arial, helvetica,
 sans-serif;font-size:10pt">knows better which proxy to use, if all backends get http_proxy set then we will</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">have to work around this issue.</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">Best,</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">DAniel.</div></div><div style="position:fixed"></div>


</div><br>



      &nbsp;</body></html>