From: Olaf Mandel Date: Fri, 28 Oct 2016 14:04:10 +0000 (+0000) Subject: toasterui.py: warn if buildstats is missing X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3570a8cf94354c8ab07513c304ebae33623fea33;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toasterui.py: warn if buildstats is missing Like for buildhistory, warn if buildstats is missing from INHERIT. CC: Joshua Lock Signed-off-by: Olaf Mandel Signed-off-by: Richard Purdie --- diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py index 9808f6bc8f8..b1b3684a823 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())