From owner-cvs-all@FreeBSD.ORG Sat Jan 7 22:10:58 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 D8FFC16A41F; Sat, 7 Jan 2006 22:10:58 +0000 (GMT) (envelope-from krion@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97ABC43D49; Sat, 7 Jan 2006 22:10:58 +0000 (GMT) (envelope-from krion@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k07MAwje059622; Sat, 7 Jan 2006 22:10:58 GMT (envelope-from krion@repoman.freebsd.org) Received: (from krion@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k07MAwJb059621; Sat, 7 Jan 2006 22:10:58 GMT (envelope-from krion) Message-Id: <200601072210.k07MAwJb059621@repoman.freebsd.org> From: Kirill Ponomarew Date: Sat, 7 Jan 2006 22:10:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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:10:59 -0000 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 Revision Changes Path 1.44 +11 -2 src/usr.sbin/pkg_install/add/extract.c 1.82 +7 -0 src/usr.sbin/pkg_install/create/perform.c 1.70 +5 -1 src/usr.sbin/pkg_install/create/pkg_create.1 1.28 +10 -3 src/usr.sbin/pkg_install/create/pl.c 1.40 +4 -1 src/usr.sbin/pkg_install/info/show.c 1.51 +5 -2 src/usr.sbin/pkg_install/lib/plist.c