From owner-cvs-all@FreeBSD.ORG Sat Jan 7 22:13:05 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 603CC16A41F; Sat, 7 Jan 2006 22:13:05 +0000 (GMT) (envelope-from krion@voodoo.bawue.com) Received: from voodoo.bawue.com (voodoo.bawue.com [212.9.161.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ABDB43D5E; Sat, 7 Jan 2006 22:13:03 +0000 (GMT) (envelope-from krion@voodoo.bawue.com) Received: from krion by voodoo.bawue.com with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1EvMJ7-0009BV-IC; Sat, 07 Jan 2006 23:13:05 +0100 Date: Sat, 7 Jan 2006 23:13:05 +0100 From: Kirill Ponomarew To: cvs-all@FreeBSD.org Message-ID: <20060107221305.GA14034@voodoo.bawue.com> References: <200601072210.k07MAwJb059621@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200601072210.k07MAwJb059621@repoman.freebsd.org> X-NCC-Regid: de.oberon X-NIC-HDL: KP869-RIPE Keywords: 477273987 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/pkg_install/add extract.c src/usr.sbin/pkg_install/create perform.c pkg_create.1 pl.c src/usr.sbin/pkg_install/info show.c src/usr.sbin/pkg_install/lib plist.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jan 2006 22:13:05 -0000 On Sat, Jan 07, 2006 at 10:10:58PM +0000, Kirill Ponomarew wrote: > krion 2006-01-07 22:10:58 UTC > > FreeBSD src repository > > Modified files: > usr.sbin/pkg_install/add extract.c > usr.sbin/pkg_install/create perform.c pkg_create.1 pl.c > usr.sbin/pkg_install/info show.c > usr.sbin/pkg_install/lib plist.c > Log: > When using @cwd %%FOO%%, we must ensure to return in the original > prefix later, but doing so with @cwd %%OLDPREFIX%% (having > PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing > list. That's not really a problem when dealing with ports but that's > a problem with packages since pkg_add -p option only overrides the > first @cwd occurrence. > > This patch allow us to use @cwd without any argument. If no > directory argument is given, it will set current working directory > to the first prefix given by the @cwd command. > > PR: bin/77212 > Submitted by: flz MFC after: 3 days -Kirill