Date: Mon, 4 Mar 2013 12:40:38 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Darren Pilgrim <list_freebsd@bluerosetech.com> Cc: pkg@FreeBSD.org, FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: pkgng info command: -d overrides -r? Message-ID: <20130304114037.GJ64570@ithaqua.etoilebsd.net> In-Reply-To: <51347590.4090201@bluerosetech.com> References: <51347590.4090201@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--iRjOs3ViPWHdlw/I Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable CCed to pkg@FreeBSD.org where the discussion deserves to be :) On Mon, Mar 04, 2013 at 02:21:04AM -0800, Darren Pilgrim wrote: > With pkg_info, I can get a list of ports requiring and depended on by a= =20 > given port by doing `pkg_info -rR`. In pkgNG, the equivalent would be=20 > `pkg info -dr`, but there appears to be a problem giving -d and -r at=20 > the same time. For example: >=20 > # pkg info -r postgresql-client-9.2.3 > postgresql-client-9.2.3 is required by: > postgresql-server-9.2.3 >=20 > # pkg info -d postgresql-client-9.2.3 > postgresql-client-9.2.3 depends on: > pkgconf-0.8.9 > libiconv-1.14 > libxml2-2.7.8_5 > gettext-0.18.1.1 >=20 > So the output of -dr should be something like this: > # pkg info -dr postgresql-client-9.2.3 > postgresql-client-9.2.3 depends on: > pkgconf-0.8.9 > libiconv-1.14 > libxml2-2.7.8_5 > gettext-0.18.1.1 > postgresql-client-9.2.3 is required by: > postgresql-server-9.2.3 >=20 > But instead I get this: >=20 > # pkg info -dr postgresql-client-9.2.3 > postgresql-client-9.2.3 depends on: > pkgconf-0.8.9 > libiconv-1.14 > libxml2-2.7.8_5 > gettext-0.18.1.1 >=20 > # pkg info -rd postgresql-client-9.2.3 > postgresql-client-9.2.3 depends on: > pkgconf-0.8.9 > libiconv-1.14 > libxml2-2.7.8_5 > gettext-0.18.1.1 >=20 > It looks like pkg ignores -r if -d is given, but the two shouldn't be=20 > exclusive. Am I missing something? No you are missing nothing in fact we haven't handled yet options multual exclusion. I haven't thought that anyway one will do a pkg info -rd so I didn't test w= hat could be happening here :) thanks for reporting, definitly something to work on, don't know yet what s= hould be done here: either say "hey you can't pass -r and -d at the same time" which would be t= he easy fix :) or output things like you suggested which will be less easy regards, Bapt --iRjOs3ViPWHdlw/I Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlE0iDQACgkQ8kTtMUmk6ExyYwCgmTC2wkECbXf5qW/jsEIHLNxF vOAAniQbSrytWSr/OPOwyf2l9W8gcaxP =gY9Y -----END PGP SIGNATURE----- --iRjOs3ViPWHdlw/I--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130304114037.GJ64570>