On Mon, Aug 17, 2009 at 01:48:18PM -0400, Daniel Richard G. wrote:
> On Mon, 2009 Aug 17 09:11+0100, Mark Hindley wrote:
> >
> > Lying awake considering this more overnight, I realised this would
> > also break checksumming which only uses the filename without a path.
> 
> Well, for one, you wouldn't lop off the directory parts of the filename
> in apt-cacher-lib.pl:268 :-)
> 
> That yields the full pool/* path. Then, I believe prefixing the same
> "host" component as the index file would yield the complete filename
> under packages/. (I have yet to try this.)
> 
> > Also, we would need to consider to which distro we assign existing
> > files which don't have the complete path prepended.
> 
> That's why I was thinking of the fallback, when long-filename package
> is missing but a short-filename package is present. That addresses not
> only existing caches (if there is no upgrade script that renames
> everything), but also imported packages, which may not have a valid
> long-
> filename at all.

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.

Mark



-- 
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