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

Re: 'usual' problem with diff paths in Packages vs. hdd layout



Hi,
>>"Peter" == Peter Gervai <grin@tolna.net> writes:


 Peter> I am not quite sure about what assumptions do you
 Peter> mean. Package files contain information of their own subtree,
 Peter> for instance the one in .../contrib. They never reference any
 Peter> file outside that tree as far as I see. It seems to be logical
 Peter> not to contain or reference any paths outside that subtree,
 Peter> thus making all dir reference relative to the actual base dir.

	What happens is this; and this should work for *any* archive:
 apt gets the URI for the top level; and asks for what distributions
 on wants. It collects the Packages file from dists/<blah>/binary-<arch>/
 areas, and the packages files have directions, relative to the top,
 where the packages are to be found. 

	I am looking at the available file. It says:

Filename: dists/frozen/main/binary-i386/games/gnushogi_1.2p03-6.deb
Filename: dists/frozen/main/binary-i386/graphics/libhdf4g-dev_4.0.2-6.deb

	So, the only place where apt makes assumptions is when it
 looks for Packages files, the archive maintainer can then put the
 actual packages where they wish, by modifying the Packages files (a
 simple script can make these rtansformations after the mirror run,
 for example).

	After it has found the Packages files, apt just follows the
 direcrtions of the archive master ;-)

	Anyway, I am not responsible for apt; I guess I should let
 culus field this. (I personally think that documenting this, and
 putting a README in the mirror packages, may not be a bad idea).

	manoj
-- 
 You should encourage yourself, yourself. You should restrain
 yourself, yourself. When you are self-protected like that, you will
 live happily as a bhikkhu. 379
Manoj Srivastava  <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E


--
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: