summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/buildperf/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/buildperf/base.py')
-rw-r--r--meta/lib/oeqa/buildperf/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 2325cd1d6b..7dfb2bff37 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -425,8 +425,10 @@ class BuildPerfTestCase(unittest.TestCase):
425 """Save buildstats""" 425 """Save buildstats"""
426 def split_nevr(nevr): 426 def split_nevr(nevr):
427 """Split name and version information from recipe "nevr" string""" 427 """Split name and version information from recipe "nevr" string"""
428 name, e_v, revision = nevr.rsplit('-', 2) 428 n_e_v, revision = nevr.rsplit('-', 1)
429 match = re.match(r'^((?P<epoch>[0-9]{1,5})_)?(?P<version>.*)$', e_v) 429 match = re.match(r'^(?P<name>\S+)-((?P<epoch>[0-9]{1,5})_)?(?P<version>[0-9]\S*)$',
430 n_e_v)
431 name = match.group('name')
430 version = match.group('version') 432 version = match.group('version')
431 epoch = match.group('epoch') 433 epoch = match.group('epoch')
432 return name, epoch, version, revision 434 return name, epoch, version, revision