diff options
| -rw-r--r-- | meta/classes/buildhistory.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 796f68cf8f..2e501df24b 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
| @@ -839,11 +839,15 @@ python buildhistory_eventhandler() { | |||
| 839 | if e.data.getVar("BUILDHISTORY_COMMIT") == "1": | 839 | if e.data.getVar("BUILDHISTORY_COMMIT") == "1": |
| 840 | bb.note("Writing buildhistory") | 840 | bb.note("Writing buildhistory") |
| 841 | bb.build.exec_func("buildhistory_write_sigs", d) | 841 | bb.build.exec_func("buildhistory_write_sigs", d) |
| 842 | import time | ||
| 843 | start=time.time() | ||
| 842 | localdata = bb.data.createCopy(e.data) | 844 | localdata = bb.data.createCopy(e.data) |
| 843 | localdata.setVar('BUILDHISTORY_BUILD_FAILURES', str(e._failures)) | 845 | localdata.setVar('BUILDHISTORY_BUILD_FAILURES', str(e._failures)) |
| 844 | interrupted = getattr(e, '_interrupted', 0) | 846 | interrupted = getattr(e, '_interrupted', 0) |
| 845 | localdata.setVar('BUILDHISTORY_BUILD_INTERRUPTED', str(interrupted)) | 847 | localdata.setVar('BUILDHISTORY_BUILD_INTERRUPTED', str(interrupted)) |
| 846 | bb.build.exec_func("buildhistory_commit", localdata) | 848 | bb.build.exec_func("buildhistory_commit", localdata) |
| 849 | stop=time.time() | ||
| 850 | bb.note("Writing buildhistory took: %s seconds" % round(stop-start)) | ||
| 847 | else: | 851 | else: |
| 848 | bb.note("No commit since BUILDHISTORY_COMMIT != '1'") | 852 | bb.note("No commit since BUILDHISTORY_COMMIT != '1'") |
| 849 | } | 853 | } |
