<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; ">>On 13 September 2010 16:09, Michael Meeks <<a ymailto="mailto:michael.meeks@novell.com" href="mailto:michael.meeks@novell.com">michael.meeks@novell.com</a>> 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">>> Sure. I wonder if making backend_setup_network a backend method (cf.<br>>> pk-backed-yum) and calling it in the core before each of the relevant<br>>> methods might work ? though I guess that method is called inside many of<br>>> the thread worker functions so perhaps not.
Anyhow,<br>><br>>I think a general per-transaction ->setup() vfunc might be a very<br>>useful thing indeed, e.g:<br>><br>>_init()<br>><br>>_setup()<br>>_get_updates()<br>><br>>_setup()<br>>_get_details()<br>><br>>_finalize()<br>><br>>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>
</body></html>