]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toasterui.py: warn if buildstats is missing
authorOlaf Mandel <o.mandel@menlosystems.com>
Fri, 28 Oct 2016 14:04:10 +0000 (14:04 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Nov 2016 12:50:29 +0000 (12:50 +0000)
Like for buildhistory, warn if buildstats is missing from INHERIT.

CC: Joshua Lock <joshua.g.lock@linux.intel.com>
Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/toasterui.py

index 9808f6bc8f8ddc5c079acc03ec2e3d7fda419550..b1b3684a82365ca8c30c1af64f047cf9a7ea7c06 100644 (file)
@@ -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())