From owner-freebsd-ports@FreeBSD.ORG Fri Dec 6 08:29:35 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 B155A30C for ; Fri, 6 Dec 2013 08:29:35 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 41D3D1786 for ; Fri, 6 Dec 2013 08:29:35 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id x13so311776wgg.31 for ; Fri, 06 Dec 2013 00:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=jvKs1yv2rhA3yCC5CAoJHPbJIRaJXvf36wz3wMBs9xI=; b=kpDRBEjaed5r1I5MGqmWWSyDX1uBPysHfqa968zSpwRfOi+j2t4P+tfitTxWeGsZvo nPCrP6agZaWxMb5AuRTlS5UlQve602y+ZARW39v1PpdmOIRd9RZnneUuCh2oG4cUl5bO m4bb4kpOjYpr4OccB1H2L5w7piOEnaHaqQETE+pcUzgm8ihY2Xcws8vchLiF/bEKJkvq GfQ4g2Q5Pr0COb7dTFS/JbZsUPnjFghnApnxWfsJLiguHM0moXZ8fjydIe3VxEvag/Mh /wFRn+m8yA9+JlLXAHf6n1RVdUNQVvyHSrJyVDj+p9WPidDE5dGS5D8WQC4RCyitXmjS CXRw== X-Received: by 10.180.81.33 with SMTP id w1mr1303548wix.42.1386318573592; Fri, 06 Dec 2013 00:29:33 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id s2sm3989530wiy.7.2013.12.06.00.29.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 06 Dec 2013 00:29:32 -0800 (PST) Sender: Baptiste Daroussin Date: Fri, 6 Dec 2013 09:29:30 +0100 From: Baptiste Daroussin To: Yasuhiro KIMURA Subject: Re: Output change of 'pkg info' after 1.2. Message-ID: <20131206082929.GP76976@ithaqua.etoilebsd.net> References: <20131206.001338.320545926.yasu@utahime.org> <20131205163600.0d9f3f6f@bsd64.grem.de> <20131205162409.GA4906@ithaqua.etoilebsd.net> <20131206.015422.185732494.yasu@utahime.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mejza3ZMMA5Za1mX" Content-Disposition: inline In-Reply-To: <20131206.015422.185732494.yasu@utahime.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org 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: Fri, 06 Dec 2013 08:29:35 -0000 --mejza3ZMMA5Za1mX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 06, 2013 at 01:54:22AM +0900, Yasuhiro KIMURA wrote: > From: Baptiste Daroussin > Subject: Re: Output change of 'pkg info' after 1.2. > Date: Thu, 5 Dec 2013 17:24:09 +0100 >=20 > > 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: > >>=20 > >> > I noticed that output of 'pkg info' changed after version 1.2. > >> >=20 > >> > If I remember correctly, 1.1.x behaved as following: > >> >=20 > >> > - '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. > >> >=20 > >> > But 1.2.1 works as following: > >> >=20 > >> > - 'pkg info -q pkg-name' outputs nothing. > >> > - Both 'pkg info pkg-name' and 'pkg info -f pkg-name' outputs full > >> > information.=20 > >>=20 > >> Just tested, pkg 1.1.4 vs. 1.2.1 > >>=20 > >> pkg info -q pkg-name is identical on both, but "-f" vs no parameter > >> definitely changed and this seems like a bug to me. > >>=20 > >=20 > > It is not a bug, but intended as requested by a lot of users. To mimic = the > > pkg_info behaviour. > >=20 > > 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. >=20 > Thank you for explanation. >=20 > Then I have one question. Is there any way to get same output as=20 > 'pkg info pkg-name' of 1.1.x? I tried some combination of options but > could not find proper one. >=20 only pkg query now. pkg query "%n-%v" and to simply your life you could probably have in your pkg.conf (since pkg 1.2) alias: { whatis : "query '%n-%v'" } $ pkg whatis pkgconf pkgconf-0.9.3 etc. I should create some kind of polling to see what do people expect before fi= xing a feature request, because sometime onces request defeats what others expec= ts. regards, Bapt --mejza3ZMMA5Za1mX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iEYEARECAAYFAlKhiukACgkQ8kTtMUmk6ExTggCgmuMEqgBc/0amL9VRI3Os5YT9 X9IAnj/tfelq8JpCdTmK6v2ffY5BXasE =JQhv -----END PGP SIGNATURE----- --mejza3ZMMA5Za1mX--