From: Ed Bartosh Date: Thu, 7 Apr 2016 13:11:46 +0000 (+0100) Subject: toaster.bbclass: strip task from the target X-Git-Tag: 2016-4~107 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=901c4f96c87bb557e747245685b7942624915670;p=openembedded-core.git 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. Signed-off-by: Ed Bartosh Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- 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() { allpkgs = {} files = {} for target in e._pkgs: + target = target.split(':')[0] # strip ':' suffix from the target installed_img_path = e.data.expand(os.path.join(BUILDHISTORY_DIR_IMAGE_BASE, target)) if os.path.exists(installed_img_path): images[target] = {}