summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/recipeutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/recipeutils.py')
-rw-r--r--meta/lib/oe/recipeutils.py4
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):
638 sfx = '' 638 sfx = ''
639 639
640 if uri_type == 'git': 640 if uri_type == 'git':
641 git_regex = re.compile("(?P<pfx>(v|))(?P<ver>((\d+[\.\-_]*)+))(?P<sfx>(\+|)(git|)(r|)(AUTOINC|)(\+|))(?P<rev>.*)") 641 git_regex = re.compile("(?P<pfx>v?)(?P<ver>[^\+]*)((?P<sfx>\+(git)?r?(AUTOINC\+))(?P<rev>.*))?")
642 m = git_regex.match(pv) 642 m = git_regex.match(pv)
643 643
644 if m: 644 if m:
@@ -646,7 +646,7 @@ def get_recipe_pv_without_srcpv(pv, uri_type):
646 pfx = m.group('pfx') 646 pfx = m.group('pfx')
647 sfx = m.group('sfx') 647 sfx = m.group('sfx')
648 else: 648 else:
649 regex = re.compile("(?P<pfx>(v|r|))(?P<ver>((\d+[\.\-_]*)+))") 649 regex = re.compile("(?P<pfx>(v|r)?)(?P<ver>.*)")
650 m = regex.match(pv) 650 m = regex.match(pv)
651 if m: 651 if m:
652 pv = m.group('ver') 652 pv = m.group('ver')