Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2007 11:41:53 +0200
From:      des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=)
To:        Ivan Voras <ivoras@fer.hr>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: New FreeBSD package system (a.k.a. Daemon Package System (dps))
Message-ID:  <86y7jv1yu6.fsf@dwp.des.no>
In-Reply-To: <f21cen$iev$1@sea.gmane.org> (Ivan Voras's message of "Fri\, 11 May 2007 11\:19\:13 %2B0200")
References:  <200705102105.27271.blackdragon@highveldmail.co.za> <f20c8u$htp$1@sea.gmane.org> <20070511090118.GE826@turion.vk2pj.dyndns.org> <f21cen$iev$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Ivan Voras <ivoras@fer.hr> writes:
> des@ mentioned putting metadata info at the front of the file - I
> don't see how this would help. The most common operation with binary
> packages *over the network* is "pkg_add -r", which will need to read
> it whole anyway, and it would help greatly for things such as
> installers from CD media. (Querying a bunch of packages over the
> network for their properties, one by one, is not a good idea, but it
> is on a local media).

Having the metadata in front means you don't need to store a temporary
copy of the package in memory or on disk; you extract the metadata in
memory, and the rest of the package directly in its final location.

AFAIK, pkg_create makes sure that +CONTENTS is always the first file in
the archive, precisely to make this possible.  The fact that pkg_add
doesn't take advantage of it is a bug.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86y7jv1yu6.fsf>