Hi, On Thu, Jan 12, 2023 at 05:22:20PM +0000, Mark Hindley wrote: > Antonio, > > Thanks for this. > > On Thu, Jan 12, 2023 at 02:03:59PM -0300, Antonio Terceiro wrote: > > Package: apt-cacher > > Version: 1.7.28.1 > > Severity: normal > > Tags: patch > > > > Dear Maintainer, > > > > I was creating a cross build environment for riscv64, and my downloads > > failed because apt-cacher did not recognize it. I then discovered that > > apt-cacher has a hardcoded list of supported architectures. > > > > The attached patch reads the list of most common supported architectures > > from dpkg directly, so that you don't need to add architectures by hand > > every time one comes around. > > Yes, I have tried this approach in the past but rejected it. My concern was > that > it includes many theoretically possible, but practically not available > architectures.
From reading the code the point of this list seems to be preventing people from trying to use apt-cacher as a generic HTTP proxy, so I think it does not hurt to have a list that includes some architectures that are not used in practice. > Maybe that is overly cautious. I would agree with that. :)
signature.asc
Description: PGP signature