[OE-core] [PATCH] distrodata.bbclass: Include PRSPV variable in upstream version checking

Burton, Ross ross.burton at intel.com
Tue Jul 23 15:21:14 UTC 2013


On 18 July 2013 20:23, Saul Wold <sgw at linux.intel.com> wrote:
> I thought we were going to look into use regex instead of adding a new
> variable.

Specifically, I was thinking something like this would work:

package_regex.inc has an optional new variable, REGEX_PV_FILTER.  If
set, this will be used with re.sub to filter the PV extracted by
REGEX. Something cloning the syntax of Perl's s/// operator maybe,
using / to split the input RE and the replacement string.

i.e. REGEX_PV_FILTER_pn-docbook = "\./" would replace all dots with
the empty string, thus changing 1.2.3 into 123.

Ross



More information about the Openembedded-core mailing list