From: Robert Yang Date: Tue, 22 Aug 2017 01:23:11 +0000 (-0700) Subject: buildhistory.bbclass: print message when no commit X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=164a0bd847f02ca65dcd53ddc789690060274191;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git buildhistory.bbclass: print message when no commit This makes the user easier to know how to make commit in buildhistory. [YOCTO #11547] Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 81784eef216..a3e4c7a734a 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -824,6 +824,8 @@ python buildhistory_eventhandler() { interrupted = getattr(e, '_interrupted', 0) localdata.setVar('BUILDHISTORY_BUILD_INTERRUPTED', str(interrupted)) bb.build.exec_func("buildhistory_commit", localdata) + else: + bb.note("No commit since BUILDHISTORY_COMMIT != '1'") } addhandler buildhistory_eventhandler