On Mon, 2009 Aug 17 20:00+0100, Mark Hindley wrote:
> 
> Consider the cached file
> /var/cache/apt-cacher/packages/zip_2.32-1_amd64.deb which is present
> in an existing cache and also present in both Debian and Ubuntu
> distros (different files, but same name). There is no 'long filename'
> file, so you try to fallback on the short-filename. But, would you
> return it for a request for
> 
>  ftp.uk.debian.org/pool/main/z/zip_2.32-1_amd64.deb
> 
> or for
> 
>  mirror.ubuntu.com/pool/main/z/zip_2.32-1_amd64.deb
> 
> I don't think there is anyway to know, but 1 could be wrong.

As far as I'm aware, there isn't a good way to know. So the caveat is
that if a cache has short-filename packages, then it can't handle
multiple distributions, unless the packages somehow have the same
checksums across the board. (Which is possible for locally-built .debs,
I suppose.)

Existing caches have basically "thrown away" some of the relevant
package information, which the new approach would save, so some
additional work would be needed to get that information in for the
existing packages. The proposed two-step fallback is less about "let's
make existing caches able to handle multiple distros straightaway" and
more about "let's not effectively clear out everyone's caches by no
longer looking for packages under their old names" :-)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to