From: Alexandru DAMIAN Date: Thu, 14 Nov 2013 10:53:00 +0000 (+0000) Subject: bitbake: toaster: fix path to buildstats file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f98364a62bb4165ff37757d8cb7bd68bd1f2540;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: toaster: fix path to buildstats file 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] (Bitbake rev: 97b8ab88edc7c8dfb26b4cf305701ec96e52cc4f) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 6b6c4f3d9ee..7eac7341835 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -386,7 +386,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,