From owner-freebsd-ports@FreeBSD.ORG Thu Dec 5 16:24:15 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 C79F312A for ; Thu, 5 Dec 2013 16:24:15 +0000 (UTC) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 598FA1889 for ; Thu, 5 Dec 2013 16:24:15 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id a1so14685417wgh.11 for ; Thu, 05 Dec 2013 08:24:13 -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=W8mB1rK7rEaZt+B/pJM0HVaF9CVTkQ5ERJPlvNXYPNI=; b=Qo/Rm96RbfxLHymfSwlvUDbxhuWeYsYPpJ4o8oj6KNmUiKVrdHS4a+DA2sT6zZWCKA rWF8TyJxuCejaWDG66xkDuuqUO5MKd7RrfSuwbHe9bL3D5uotcUWz319XnpmszEJoijD +pZ3U97Zd/sz17HcwlqcYdwnF9UBnnwlTLNGJ9m9PVPWweTdJoWr2EoPFxcExPt2yXPS yYhQFYfthVysZRzCbjTyVxCzSkp8elfZqjeXjXyws/GgwJVmXdA+DyEgBpjtFinsatUn 53fRxJNTyhNDF/RE8zLHN1jCTkOd5zgNll4FeZ6abZCsPpBMu4EjNELyTXEksCIn4Vtd fUpw== X-Received: by 10.194.193.4 with SMTP id hk4mr13102038wjc.71.1386260653848; Thu, 05 Dec 2013 08:24:13 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id o9sm7636213wib.10.2013.12.05.08.24.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Dec 2013 08:24:12 -0800 (PST) Sender: Baptiste Daroussin Date: Thu, 5 Dec 2013 17:24:09 +0100 From: Baptiste Daroussin To: Michael Gmelin Subject: Re: Output change of 'pkg info' after 1.2. Message-ID: <20131205162409.GA4906@ithaqua.etoilebsd.net> References: <20131206.001338.320545926.yasu@utahime.org> <20131205163600.0d9f3f6f@bsd64.grem.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <20131205163600.0d9f3f6f@bsd64.grem.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Yasuhiro KIMURA , 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: Thu, 05 Dec 2013 16:24:15 -0000 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 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 --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (FreeBSD) iEYEARECAAYFAlKgqKkACgkQ8kTtMUmk6EzPXgCgivgMPzkmC+HPoNZbJREwUs+c PfsAn0rpKwx0C2vi4Bd/vL+xIA3+WRZ4 =g9v9 -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--