Patchwork [bitbake-devel,4/5] toaster: fix path to buildstats file

login
register
mail settings
Submitter Alexandru DAMIAN
Date Nov. 14, 2013, 10:53 a.m.
Message ID <1384426381-7869-5-git-send-email-alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/61693/
State New
Headers show

Comments

Alexandru DAMIAN - Nov. 14, 2013, 10:53 a.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

The buildstats file path changes based on the
optional PE variable that may be defined for a
recipe.

The toasterui simply ignored the PE value, and
as such it didn't correctly reach buildstats files
for some of the tasks.

This patch fixes the issue.

    [YOCTO #5073]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 lib/bb/ui/buildinfohelper.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch

diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index c1ffa26..92d6bbe 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/lib/bb/ui/buildinfohelper.py
@@ -392,7 +392,11 @@  class BuildInfoHelper(object):
             target = t.target
             machine = self.internal_state['build'].machine
             buildname = self.internal_state['build'].build_name
-            package = task_object.recipe.name + "-" + task_object.recipe.version.strip(":")
+            pe, pv = task_object.recipe.version.split(":",1)
+            if len(pe) > 0:
+                package = task_object.recipe.name + "-" + pe + "_" + pv
+            else:
+                package = task_object.recipe.name + "-" + pv
 
             build_stats_path.append(build_stats_format.format(tmpdir=self.tmp_dir, target=target,
                                                      machine=machine, buildname=buildname,