[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#353556: #353556: choose-mirror: should check that architecture is supported by mirror



On Mon, Feb 20, 2006 at 04:09:46PM +0100, Frans Pop wrote:
> tags 353556 + patch
> thanks
> 
> The attached patch will check if the architecture is supported by reading 
> the index.html file for the binary-$arch directory and checking if there 
> is a reference to a Packages.gz file in that. If the arch is not 
> supported, the wget will return 404 and the check will fail.

That assume that the archive server provides
an overview file (containing the string 'Packages.gz' )

Apt-proxy doesn't do that. See this test output 
( 'mir' is my local mirror, '9999 is the default apt-proxy port )

| $ wget -q http://mir:9999/debian/dists/testing/main/binary-i386/Packages.gz -O  - | wc
|   14602   84866 3771536
| $ wget -q http://mir:9999/debian/dists/testing/main/binary-i386/ -O  - | wc
|       0       0       0
| $ wget -q http://mir:9999/debian/dists/testing/main/binary-i386 -O  - | wc
|       0       0       0
| $

In other words: the "fix" will break apt-proxy configurations.


> The patch is a bit ugly in that this is now the third function that will 
> determine mirror, suite, etc and perform a wget.

IMHO tries the patch to fix something that should be fixed in debootstrap.

http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=debootstrap hasn't (yet?)
a wishlist BR like: "debootstrap should validate Packages.gz"



HtH
GSt

Attachment: signature.asc
Description: Digital signature


Reply to: