diff options
| -rw-r--r-- | meta/lib/oe/recipeutils.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 9d45b4216e..cd742130de 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -638,7 +638,7 @@ def get_recipe_pv_without_srcpv(pv, uri_type):      sfx = ''      if uri_type == 'git': -        git_regex = re.compile("(?P<pfx>(v|))(?P<ver>((\d+[\.\-_]*)+))(?P<sfx>(\+|)(git|)(r|)(AUTOINC|)(\+|))(?P<rev>.*)") +        git_regex = re.compile("(?P<pfx>v?)(?P<ver>[^\+]*)((?P<sfx>\+(git)?r?(AUTOINC\+))(?P<rev>.*))?")          m = git_regex.match(pv)          if m: @@ -646,7 +646,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>.*)")          m = regex.match(pv)          if m:              pv = m.group('ver') | 
