[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4984/8267] buildhistory.bbclass: Only execute get_extra_sdkinfo when sdk is enabled



commit aac3ad4785aef1476a21efe5193f48a5eba4fb10
Author: Aníbal Limón <anibal limon linux intel com>
Date:   Fri Mar 3 17:01:07 2017 -0600

    buildhistory.bbclass: Only execute get_extra_sdkinfo when sdk is enabled
    
    If sdk ins't in BUILDHISTORY_FEATURES the get_extra_sdkinfo fails
    because no information about sdk is generated in buildhistory repo.
    
    (From OE-Core rev: e6a0ea6146171635c49b18e00b4b11a9a7ff20ee)
    
    Signed-off-by: Aníbal Limón <anibal limon linux intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/classes/buildhistory.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index ee6addd..bf5789e 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -550,7 +550,9 @@ END
 python buildhistory_get_extra_sdkinfo() {
     import operator
     import math
-    if d.getVar('BB_CURRENTTASK') == 'populate_sdk_ext':
+
+    if d.getVar('BB_CURRENTTASK') == 'populate_sdk_ext' and \
+            "sdk" in (d.getVar('BUILDHISTORY_FEATURES') or "").split():
         tasksizes = {}
         filesizes = {}
         for root, _, files in os.walk(d.expand('${SDK_OUTPUT}/${SDKPATH}/sstate-cache')):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]