summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-04-07 14:11:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-09 23:00:44 +0100
commit69b3f877f606ec8d5204e4f54426270d27c673f4 (patch)
tree5fe0801aef5a88726071e9548803b970f3e917d6 /meta/classes
parentaa45c75df989302ba8ae9deaf136b0046f0b4f84 (diff)
downloadpoky-69b3f877f606ec8d5204e4f54426270d27c673f4.tar.gz
toaster.bbclass: strip task from the target
Current code in toaster_buildhistory_dump assumes that bitbake target doesn't contain task name. It uses target as a part of path to the files with data that it analizes. It fails to find files if target contains task name. Stripping task from the target should solve this. (From OE-Core rev: 901c4f96c87bb557e747245685b7942624915670) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/toaster.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 1c0703c680..004e068de7 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -317,6 +317,7 @@ python toaster_buildhistory_dump() {
317 allpkgs = {} 317 allpkgs = {}
318 files = {} 318 files = {}
319 for target in e._pkgs: 319 for target in e._pkgs:
320 target = target.split(':')[0] # strip ':<task>' suffix from the target
320 installed_img_path = e.data.expand(os.path.join(BUILDHISTORY_DIR_IMAGE_BASE, target)) 321 installed_img_path = e.data.expand(os.path.join(BUILDHISTORY_DIR_IMAGE_BASE, target))
321 if os.path.exists(installed_img_path): 322 if os.path.exists(installed_img_path):
322 images[target] = {} 323 images[target] = {}