summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-08-21 18:23:11 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 14:12:39 +0100
commit164a0bd847f02ca65dcd53ddc789690060274191 (patch)
tree9789d8c346cc631f56c32e818ad75091b4166e93
parentd0d2f892f0bed6adb5ec6fb59d64efcc97c83e19 (diff)
downloadopenembedded-core-contrib-164a0bd847f02ca65dcd53ddc789690060274191.tar.gz
openembedded-core-contrib-164a0bd847f02ca65dcd53ddc789690060274191.tar.bz2
openembedded-core-contrib-164a0bd847f02ca65dcd53ddc789690060274191.zip
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 <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/buildhistory.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 81784eef21..a3e4c7a734 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