On 26 August 2014 19:35, Michael Vogt <m...@ubuntu.com> wrote: > > On Mon, Aug 25, 2014 at 07:17:18PM -0700, Michael Vogt wrote: > > > It would be useful to support PAC (proxy autoconfiguration files) with > > > apt. Specifically, PAC files are simple javascript files that given a > > > URL and HOST output a proxy setting. This can be trivially hooked up > > > with Acquire::http::Proxy-Auto-Detect, however Proxy-Auto-Detect is > > > called only once, instead of per-host, hence one cannot easily mix > > > repositories that require different proxies or proxy only for some > > > repositories. Extending Proxy-Auto-Detect to pass host parameter and > > > calling that for each host/repository would be beneficial to integrate > > > (optionally) pac file support with apt. (Similar to how deb squid proxy > > > support is done). > > > > Attached is a (untested) patch that make the Proxy-Auto-Detect a > > per-host thing. If this looks vaguely like what you need we need to > > add a testcase before it can go in. > > Looks like I forgot to attach the patch. I attach it now, Raphael > Geissert pointed out that by using command "proxy" from the > libproxy-tools package your use-case should be solved. > > Along the way I added the auto-detect to https as well. If you could > give it a test-run, that would be awesome. >
Unfortunately I cannot test the proposed git diff, as I can't find a tree that I can apply it against. Could you please commit it and push as a branch somewhere, and/or provide: $ git format-patch origin/debian/sid patches? I'm using git://anonscm.debian.org/apt/apt.git and that repository does not have apt-pkg/contrib/proxy.cc in any of its heads. -- Regards, Dimitri. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org