]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory.bbclass: print message when no commit
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 22 Aug 2017 01:23:11 +0000 (18:23 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Aug 2017 13:12:39 +0000 (14:12 +0100)
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>
meta/classes/buildhistory.bbclass

index 81784eef2160b8a7c1db989098eed266aa0be093..a3e4c7a734a2a0a79d22ca571dc71bcf26cb761e 100644 (file)
@@ -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