Date: Fri, 06 Dec 2013 08:20:57 +0100 From: Lars Engels <lars.engels@0x20.net> To: freebsd-ports@freebsd.org Subject: Re: Output change of 'pkg info' after 1.2. Message-ID: <14a32fc3f3ecbb6e8ce8aa2fc5eab344@mail.0x20.net> In-Reply-To: <20131206.015422.185732494.yasu@utahime.org> References: <20131206.001338.320545926.yasu@utahime.org> <20131205163600.0d9f3f6f@bsd64.grem.de> <20131205162409.GA4906@ithaqua.etoilebsd.net> <20131206.015422.185732494.yasu@utahime.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 2013-12-05 17:54, schrieb Yasuhiro KIMURA: > From: Baptiste Daroussin <bapt@FreeBSD.org> > 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 <yasu@utahime.org> 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. 1.1.4 doesn't behave like you describe, but here's a universal way: root@fbsd01:~ # pkg info pkg pkg-1.1.4_8 root@fbsd01:~ # pkg info icinga icinga-1.9.3_2 root@fbsd01:~ # pkg query '%n-%v' icinga icinga-1.9.3_2 root@fbsd01:~ # pkg query '%n-%v %c' icinga icinga-1.9.3_2 Enterprise grade open source monitoring system based on Nagios
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14a32fc3f3ecbb6e8ce8aa2fc5eab344>