Date: Wed, 11 Apr 2012 16:13:58 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Wayne Sierke <ws@au.dyndns.ws> Cc: Greg Byshenk <freebsd@byshenk.net>, Anton Shterenlikht <mexas@bristol.ac.uk>, freebsd-ports@FreeBSD.org, Julien Laffaye <jlaffaye@FreeBSD.org> Subject: Re: pkg version -Xs foo shows all ports, not just foo Message-ID: <20120411141358.GA2401@azathoth.lan> In-Reply-To: <1334143770.1385.13.camel@predator-ii.buffyverse> References: <20120410195541.GA62066@mech-cluster241.men.bris.ac.uk> <20120410204737.GA1737@portland1.byshenk.net> <1334124961.1385.7.camel@predator-ii.buffyverse> <4F852DA1.4020900@freebsd.org> <1334143770.1385.13.camel@predator-ii.buffyverse>
next in thread | previous in thread | raw e-mail | index | archive | help
--7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 11, 2012 at 08:59:30PM +0930, Wayne Sierke wrote: > On Wed, 2012-04-11 at 09:07 +0200, Julien Laffaye wrote: > > On 4/11/2012 8:16 AM, Wayne Sierke wrote: > > > On Tue, 2012-04-10 at 13:47 -0700, Greg Byshenk wrote: > > >> On Tue, Apr 10, 2012 at 08:55:41PM +0100, Anton Shterenlikht wrote: > > >>> BUZI> pkg version -Xs Image > > >>> CalculiX-2.4 =3D > > >>> GraphicsMagick-1.1.15_3,1 =3D > > >>> ImageMagick-6.7.5.10 =3D > > >>> ORBit2-2.14.19 =3D > > >>> OpenEXR-1.6.1_3 =3D > > >>> R-2.14.2 =3D > > >>> ^C > > >>> BUZI> > > >>> > > >>> The man page seems to indicate that the > > >>> above options should only show ImageMagick. > > >>> > > >>> What am I doing wrong? > > > Is it a transcription error or are you really using a command named > > > "pkg" rather than pkg_version(1)? > > I think he is using pkgng. >=20 > Ah, ok. I hadn't looked at pkgng yet. >=20 > Looks like those options aren't implemented yet: >=20 > mika# pwd ; grep -En -C1 "VERSION_STRING|VERSION_EREGEX" ./pkg/version.c > /usr/ports/ports-mgmt/pkg/work/pkg-1.0-beta10 > 208- case 'X': > 209: opt |=3D VERSION_EREGEX; > 210- break; > 211- case 's': > 212: opt |=3D VERSION_STRING; > 213- break; > mika# grep -Ewr "VERSION_STRING|VERSION_EREGEX" . > ./pkg/pkgcli.h:#define VERSION_EREGEX (1<<6) > ./pkg/pkgcli.h:#define VERSION_STRING (1<<7) > ./pkg/version.c: opt |=3D VERSION_EREGEX; > ./pkg/version.c: opt |=3D VERSION_STRING; > mika#=20 >=20 >=20 implemented now:=20 https://github.com/pkgng/pkgng/commit/faac85fec181eafc539c8d5473c045a4e34eb= fcf in what I think is a better way (without s and with more option): pkg version -X foo =3D Extended regular expression=20 pkg version -x foo =3D regular expression pkg version -g foo =3D glob pkg version -e foo =3D exact match regards, Bapt --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+FkaYACgkQ8kTtMUmk6EziSQCdGMFanzQy08iepyi59woZfI69 qh4An3zDBHNLyg1oZClO7Cdmr69/4UrI =ewLq -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120411141358.GA2401>