From owner-freebsd-ports@FreeBSD.ORG Thu Dec 5 16:54:41 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9592985F for ; Thu, 5 Dec 2013 16:54:41 +0000 (UTC) Received: from gate.utahime.jp (ipq210.utahime.jp [183.180.29.210]) by mx1.freebsd.org (Postfix) with ESMTP id 61E4C1A7D for ; Thu, 5 Dec 2013 16:54:41 +0000 (UTC) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) by gate.utahime.jp (Postfix) with ESMTP id 5C4CA61FAB; Fri, 6 Dec 2013 01:54:39 +0900 (JST) Received: from eastasia.home.utahime.org (localhost [127.0.0.1]) by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id 2E9B34E642; Fri, 6 Dec 2013 01:54:39 +0900 (JST) Received: from localhost (rolling.home.utahime.org [192.168.174.11]) by eastasia.home.utahime.org (Postfix) with ESMTPA id E08384E62D; Fri, 6 Dec 2013 01:54:38 +0900 (JST) Date: Fri, 06 Dec 2013 01:54:22 +0900 (JST) Message-Id: <20131206.015422.185732494.yasu@utahime.org> To: freebsd-ports@freebsd.org Subject: Re: Output change of 'pkg info' after 1.2. From: Yasuhiro KIMURA In-Reply-To: <20131205162409.GA4906@ithaqua.etoilebsd.net> References: <20131206.001338.320545926.yasu@utahime.org> <20131205163600.0d9f3f6f@bsd64.grem.de> <20131205162409.GA4906@ithaqua.etoilebsd.net> X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Dec 2013 16:54:41 -0000 From: Baptiste Daroussin Subject: Re: Output change of 'pkg info' after 1.2. Date: Thu, 5 Dec 2013 17:24:09 +0100 > On Thu, Dec 05, 2013 at 04:36:00PM +0100, Michael Gmelin wrote: >> On Fri, 06 Dec 2013 00:13:38 +0900 (JST) >> Yasuhiro KIMURA wrote: >> >> > I noticed that output of 'pkg info' changed after version 1.2. >> > >> > If I remember correctly, 1.1.x behaved as following: >> > >> > - 'pkg info -q pkg-name' outputs package name with version. >> > - 'pkg info pkg-name' outputs package name with version, and comment. >> > - 'pkg info -f pkg-name' outputs full information. >> > >> > But 1.2.1 works as following: >> > >> > - 'pkg info -q pkg-name' outputs nothing. >> > - Both 'pkg info pkg-name' and 'pkg info -f pkg-name' outputs full >> > information. >> >> Just tested, pkg 1.1.4 vs. 1.2.1 >> >> pkg info -q pkg-name is identical on both, but "-f" vs no parameter >> definitely changed and this seems like a bug to me. >> > > It is not a bug, but intended as requested by a lot of users. To mimic the > pkg_info behaviour. > > pkg info -q shows nothing on purpose as well as pkg info -q is used by the > scripts like portmaster or by the ports tree and only the return value is > checked > 0 means something was found 1 means nothing was found. Thank you for explanation. Then I have one question. Is there any way to get same output as 'pkg info pkg-name' of 1.1.x? I tried some combination of options but could not find proper one. Regards. --- Yasuhiro KIMURA