From owner-freebsd-ports@FreeBSD.ORG Fri Jan 16 12:52:08 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7ED3A1065673 for ; Fri, 16 Jan 2009 12:52:08 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id AD5AD8FC30 for ; Fri, 16 Jan 2009 12:52:06 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA00604; Fri, 16 Jan 2009 14:52:04 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <497082F3.2080606@icyb.net.ua> Date: Fri, 16 Jan 2009 14:52:03 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: FreeBSD Ports Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Garrett Cooper , Oliver Eikemeier , Florent Thoumie , Maxim Sobolev Subject: pkg_info: package files checked before installed packages X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2009 12:52:09 -0000 [people who "touched" pkg_info recently are CC-ed] Please see a prior discussion here: http://docs.freebsd.org/cgi/mid.cgi?496F360E.1000508 and especially this post: http://docs.freebsd.org/cgi/mid.cgi?7d6fde3d0901152330p32c51b64i212c660c0aaeb04c So it is obvious from code in usr.sbin/pkg_install/info/perform.c, function pkg_do() that if for a given name there is both a package file in a defined packages directory and also an installed package, then pkg_info would work on the package file. I do not think that this is either obvious/intuitive or even correct. At the very list there should be an option to control this behavior. I have a system where I keep package files for all installed/built packages and pkg_info acts very nasty there, especially when working on all packages. -- Andriy Gapon