From owner-cvs-all Tue Apr 2 2:24:48 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 55F3E37B41B; Tue, 2 Apr 2002 02:24:42 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 7CAB55346; Tue, 2 Apr 2002 12:24:36 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Jordan Hubbard Cc: Mikhail Teterin , obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/sysinstall install.c installUpgrade.c media.c package.c References: <23280.1017708947@winston.freebsd.org> From: Dag-Erling Smorgrav Date: 02 Apr 2002 12:24:36 +0200 In-Reply-To: <23280.1017708947@winston.freebsd.org> Message-ID: Lines: 19 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jordan Hubbard writes: > Because that's just not the way it works. If you wanted to do that, > you'd need to invert the logic of pkg_add to extract in place and then > clean up the non-essentials, rather than extracting in a temporary > directory, moving only the essentials into place, and then deleting > the temp dir. No, you can extract +FOO in a temp directory, then use +CONTENTS to generate a file list that you pass to tar(1) using the -I option to extract the actual contents of the package in-place. If the package was generated "smartly" (i.e. with +FOO listed before any other files on the command line so they're at the beginning of the archive) and you use --fast-read, it'll be significantly faster as well as use less space. If the package was not generated "smartly", it'll still be somewhat faster than the current logic. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message