Patchwork buildhistory: Restore parsing time optimalization

login
register
mail settings
Submitter Martin Jansa
Date Aug. 24, 2014, 4:22 p.m.
Message ID <1408897366-8784-1-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/78871/
State Accepted
Commit e601c8b1603fd7f977fd307d7cecea9fb9331119
Headers show

Comments

Martin Jansa - Aug. 24, 2014, 4:22 p.m.
* it was added in:
  http://git.openembedded.org/openembedded-core/commit/meta/classes/buildhistory.bbclass?id=540a2a30be21c3eca4323efbe91e7dcfc31a4c97
* then accidentally removed in:
  http://git.openembedded.org/openembedded-core/commit/meta/classes/buildhistory.bbclass?id=6db6c74f2876df7a183990426bb4262972966441

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/buildhistory.bbclass | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 479e460..e8cdee5 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -499,6 +499,8 @@  POPULATE_SDK_POST_HOST_COMMAND_append = " buildhistory_list_installed_sdk_host ;
 SDK_POSTPROCESS_COMMAND += "buildhistory_get_sdkinfo ; "
 
 def buildhistory_get_build_id(d):
+    if d.getVar('BB_WORKERCONTEXT', True) != '1':
+        return ""
     localdata = bb.data.createCopy(d)
     bb.data.update_data(localdata)
     statuslines = []