Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2011 22:13:05 +0000 (UTC)
From:      Marcin Wisnicki <mwisnicki+freebsd@gmail.com>
To:        freebsd-java@freebsd.org
Subject:   Re: Version number of openjdk6 port
Message-ID:  <ino19h$pgs$1@dough.gmane.org>
References:  <4D9F1E05.4070900@FreeBSD.org> <201104081511.47184.jkim@FreeBSD.org> <4D9F667A.90302@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 08 Apr 2011 15:48:10 -0400, John Baldwin wrote:

> Hmm, I can probably workaround this then using an explicit comparison
> rule (so it doesn't use >0).  It would be nice if we had an official way
> to match a package with "any version".  Perhaps "pkg_info -E 'pkg-*'" if
> we assume that package names can never have dashes in them (to avoid
> problems, with, say, 'foo-*' matching both foo-1.0 and foo-bar-1.0.). 


You can use regular expression. Everything after last hyphen is a version.

pkg_info -EX "^xorg-[^-]+$"


> Oh, we already have those types of packages:
> 
> xorg-7.5            X.Org complete distribution metaport xorg-apps-7.5_1
>     X.org apps meta-port
> 
> The problem is how can software generically say "is any version of the
> foo package installed".  It would seem we don't support that currently?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ino19h$pgs$1>