[OE-core] [PATCH 3/4] fontconfig: fix upstream version check

Alexander Kanavin alexander.kanavin at linux.intel.com
Mon Feb 12 14:19:53 UTC 2018


On 02/12/2018 04:16 PM, Maxin B. John wrote:
> In the case of fontconfig, version x.x.9x are release candidates
> for next version.
> +UPSTREAM_CHECK_REGEX = "fontconfig-(?P<pver>\d+\.\d+\.[^9]\d*).tar.gz"

This will incorrectly exclude x.x.9 which is not a release candidate. 
You need to exclude "9 followed by one or more digits", not just 9 alone.

Also, "." in .tar.gz means "any character", if you want to match literal 
"." it should be "\."

This is a good place to practice:
http://regex101.com


Alex



More information about the Openembedded-core mailing list