On Tue, 15 Oct 2002 01:57:00 +0100
Colin Watson <[EMAIL PROTECTED]> wrote:

> On Mon, Oct 14, 2002 at 08:46:20PM -0400, Try KDE wrote:
> > Here is a harder question (in my opinion, anyway): given a http/ftp
> > line in sources.list, what's apt's algorithm for retrieve the list
> > of packages. For example, deb http://http.us.debian.org/debian/
> > testing main non-free 
> >    contrib
> > 
> > will produce such an output from apt-get:
> >   Get:1 http://http.us.debian.org testing/main Packages [2036kB]
> > 
> > So exactly what uri was constructed out of it? My browser says 
> > http://http.us.debian.org/testing/main doesn't exist. By the way,
> > apt-get's manpage is very unclear in this aspects.
> 
> The sources.list(5) man page is better, but still doesn't go into
> enough detail. The actual URL constructed is:
> 
>   http://http.us.debian.org/debian/dists/testing/main/Packages.gz
> 
> The dists/ is implicit when the distribution, "testing" in your case,
> doesn't end with a slash. The Packages versus Packages.gz thing is my
> recollection, and *is* confusing when you're trying to set up a local
> archive and forget to gzip the Packages file (see bug #65839).
> 

And it gets even more interesting when you are actually working with
installing packages. The URI becomes:

http://http.us.debian.org/debian/pool/[main|contrib|non-free]/[1st-letter-of-package-name]/[package-name]/[package-name_version-debianrelease_arch.deb]

Example:

http://http.us.debian.org/debian/pool/main/3/3dchess/3dchess_0.8.1-9_i386.deb

Yes, the wrapping on those two lines will suck.

G

-- 
gvl2 (Gerald)
AirBall the Rolling Basket Case (1969 Standard Beetle)
LifeSaver (1974 Bay Window Bus)
http://www.phorce1.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to