Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2018 19:35:15 -0400
From:      Dan Langille <dan@langille.org>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>, Dan Langille <dan@langille.org>
Subject:   Re: getting PKGNAME from CONFLICTS
Message-ID:  <9823D065-3FCC-4D69-9EB4-9C4CD01C7778@langille.org>
In-Reply-To: <286CAC11-E9C6-42C4-8D41-97F51EFF1596@yahoo.com>
References:  <286CAC11-E9C6-42C4-8D41-97F51EFF1596@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Aug 14, 2018, at 2:55 PM, Mark Millard via freebsd-ports =
<freebsd-ports@freebsd.org> wrote:
>=20
>=20
> Dan Langille dan at langille.org wrote on
> Tue Aug 14 17:54:01 UTC 2018 :
>=20
>> . . .
>> At https://dev.freshports.org/www/p5-CGI/ you can see:
>>=20
>>   CONFLICTS: p5-CGI.pm-[1-3]*
>> . . .
>> To extract the PKGNAME values from the CONFLICTS I will need to =
remove everything after the trailing dash.
>> . . .
>=20
> p5-
> vs.
> p5-CGI.pm-
> vs.
> p5-CGI.pm-[1-
>=20
> It looks to me like "trailing dash" probably has a
> complicated definition where some "-"(s) may exist
> that are to be ignored after the one of interest.
> In the example I'm guessing that the middle
> "-" is intended (so "p5-CGI.pm-").

Agreed.  The hard part is identifying the regex and deleting it from =
consideration.

--=20
Dan Langille - BSDCan / PGCon
dan@langille.org






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9823D065-3FCC-4D69-9EB4-9C4CD01C7778>