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

Re: Automatic mirror selection



On Fri, 2008-02-01 at 21:09:24 +0100, Leo costela Antunes wrote:
> Adam Borowski wrote:
> > Uhm, and how exactly do you get the arch?  At DNS time you don't have
> > anything but the requester's or his ISP's IP.
> 
> This would have to be placed inside sources.list at some point, then I
> figure the automatic or manual process responsible should stick
> "dpkg-architecture -qDEB_BUILD_ARCH" somewhere in there, so you just
> have to query "<arch>.geomirror.d.net", for instance, to get the best
> mirror for your country which contains your arch.

You might want you use «dpkg --print-architecture» instead, so you
avoid a dependency on dpkg-dev.

regards,
guillem


Reply to: