[oe-commits] [bitbake] 19/20: toasterui.py: warn if buildstats is missing

git at git.openembedded.org git at git.openembedded.org
Fri Nov 4 12:55:59 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 3570a8cf94354c8ab07513c304ebae33623fea33
Author: Olaf Mandel <o.mandel at menlosystems.com>
AuthorDate: Fri Oct 28 14:04:10 2016 +0000

    toasterui.py: warn if buildstats is missing
    
    Like for buildhistory, warn if buildstats is missing from INHERIT.
    
    CC: Joshua Lock <joshua.g.lock at linux.intel.com>
    Signed-off-by: Olaf Mandel <o.mandel at menlosystems.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/ui/toasterui.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 9808f6b..b1b3684 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -168,6 +168,9 @@ def main(server, eventHandler, params):
         logger.warning("buildhistory is not enabled. Please enable INHERIT += \"buildhistory\" to see image details.")
         build_history_enabled = False
 
+    if not "buildstats" in inheritlist.split(" "):
+        logger.warning("buildstats is not enabled. Please enable INHERIT += \"buildstats\" to generate build statistics.")
+
     if not params.observe_only:
         params.updateFromServer(server)
         params.updateToServer(server, os.environ.copy())

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


More information about the Openembedded-commits mailing list