On Tue, Apr 21, 2009 at 10:56:16PM -0400, Eric Cooper wrote:
> package approx
> tag 524984 confirmed
> thanks
> 
> > I've just discovered that approx does not gracefully handle HEAD
> > requests, as used by d-i (via the wget --spider command).  This
> > makes it rather tricky to use an approx cache to back d-i
> > development.
> 
> You're right, it only supports GETs currently.
> 
> It seems to me that if approx gets a HEAD for something not in the
> cache, it will have to download it from the remote repository just so
> it can report that it exists (or confirm that it doesn't).  Is that
> the desired behavior?

I would imagine it would only have to do a HEAD request upstream, not do a
full download.  I could live with those HEADs not being cached.

The specific use case of d-i is it just HEADs the Release file to confirm
that the repo URL is something that smells roughly like a Debian package
repo; in normal operation, the Release file will get retrieved fully (by
another part of the d-i build process) shortly thereafter, along with all
the packages.

A brief thinking session leads me to think that a 404 response to a HEAD
when the file isn't in the cache and we're in offline mode is the least
worst option.

- Matt



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