On 2015-08-26 23:09, Riley Baird wrote: > On Wed, 26 Aug 2015 18:08:31 +0200 > Petter Reinholdtsen <p...@hungry.com> wrote: > >> [Riley Baird] >>> This isn't a permanent solution, but it's kind of a workaround. >>> apt-file doesn't seem to allow the plus sign to be in the protocol >>> name, I've changed it to change it to torhttp. After that, add the >>> following line to your /etc/apt/apt-file.conf and it should work. Be >>> careful, though, because torify isn't perfect, and I don't know if it >>> preserves anonymity when used with diffindex-download. >> >> Thank you for this tip. While I guess apt-file can be adjusted to >> accept the plus sign in protocol names (or apt-transport-tor can be >> changed to use another protocol name), isn't it better to change >> apt-file to use the apt transport method in /usr/lib/apt/methods/, and >> thus download the exact same way apt is? Why isn't apt-file already >> using those methods for downloading? > > Good point. It would be much better for apt-file to use the apt > transport methods in /usr/lib/apt/methods/ so that there doesn't need > to be a new bug opened every time that there's a new method. >
Indeed, there is a "metabug" for that (see #752292). I am currently prototyping a new version of apt-file that uses the new APT acquire system. The code is at [1] for early testers. Known issues or untested parts: =============================== * The regex escaping is broken, so some patterns match the wrong thing (or break apt-file). - Note that -x probably works as it has less magic. * Tests "mostly pass" * Packaging/build is probably broken * Some features are not supported and some *will not* be supported. - Notably "won't support" features include "--cache" and "--sources-list" * Other parts *will* break - Since we are breaking stuff, we might as well go all in and look at fixing some outstanding bugs requiring backwards compatible changes. - Examples include: #706796 To test the new apt-file: ========================= * install apt from experimental - CAVEAT: #796999 (did not trigger for me, but YMMV) * (sudo) cp 50apt-file.conf /etc/apt/apt.conf.d * (sudo) apt update * ./apt-file search foo (or other apt-file cmd) Patches welcome! Test cases welcome Thanks, ~Niels [1] https://anonscm.debian.org/cgit/users/nthykier/apt-file.git/log/?h=apt-acquire
signature.asc
Description: OpenPGP digital signature