mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
RRS: do not ignore non-numeric characters in versions
The regex we were using here explicitly only matched numeric characters in version numbers - presumably the assumption was that any non-numeric characters were not significant. However, for upstream projects such as OpenSSL and BIND for example, alphabetic characters are an explicit part of the version number, so if we ignore them then we miss detecting most of the upgrades. Fix the regex so that that doesn't happen. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
8dbe8d09b9
commit
9561cce55e
|
@ -152,7 +152,7 @@ def get_recipe_pv_without_srcpv(pv, uri_type):
|
|||
pfx = m.group('pfx')
|
||||
sfx = m.group('sfx')
|
||||
else:
|
||||
regex = re.compile("(?P<pfx>(v|r|))(?P<ver>((\d+[\.\-_]*)+))")
|
||||
regex = re.compile("(?P<pfx>(v|r|))(?P<ver>((\w+[\.\-_]*)+))")
|
||||
m = regex.match(pv)
|
||||
if m:
|
||||
pv = m.group('ver')
|
||||
|
|
Loading…
Reference in New Issue
Block a user