Output change of 'pkg info' after 1.2.

Baptiste Daroussin bapt at FreeBSD.org
Thu Dec 5 16:24:15 UTC 2013


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 at 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.

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20131205/9e316d63/attachment.sig>


More information about the freebsd-ports mailing list