summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
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:16:01 +0100
commit0cdabb740434502245dc12487ce32b886a091818 (patch)
tree68ad5202d31d27eec4b9bf6d64656fb5f1fab76c /meta/classes/buildhistory.bbclass
parent9fd9fae6349cb1be7c9708bf468d2dab7ef3e74d (diff)
downloadpoky-0cdabb740434502245dc12487ce32b886a091818.tar.gz
buildhistory.bbclass: print message when no commit
This makes the user easier to know how to make commit in buildhistory. [YOCTO #11547] (From OE-Core rev: 164a0bd847f02ca65dcd53ddc789690060274191) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-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() {
824 interrupted = getattr(e, '_interrupted', 0) 824 interrupted = getattr(e, '_interrupted', 0)
825 localdata.setVar('BUILDHISTORY_BUILD_INTERRUPTED', str(interrupted)) 825 localdata.setVar('BUILDHISTORY_BUILD_INTERRUPTED', str(interrupted))
826 bb.build.exec_func("buildhistory_commit", localdata) 826 bb.build.exec_func("buildhistory_commit", localdata)
827 else:
828 bb.note("No commit since BUILDHISTORY_COMMIT != '1'")
827} 829}
828 830
829addhandler buildhistory_eventhandler 831addhandler buildhistory_eventhandler