[oe-commits] [openembedded-core] 11/20: toaster.bbclass: strip task from the target

git at git.openembedded.org git at git.openembedded.org
Fri Apr 8 07:06:05 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 901c4f96c87bb557e747245685b7942624915670
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Thu Apr 7 14:11:46 2016 +0100

    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 <ed.bartosh at linux.intel.com>
    Signed-off-by: Elliot Smith <elliot.smith at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/toaster.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 1c0703c..004e068 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 ':<task>' 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] = {}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list