summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/buildhistory.bbclass21
1 files changed, 20 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 135d17a837..4db0441993 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -593,12 +593,27 @@ buildhistory_single_commit() {
593 commitopts="$3 metadata-revs" 593 commitopts="$3 metadata-revs"
594 item="$3" 594 item="$3"
595 fi 595 fi
596 if [ "${BUILDHISTORY_BUILD_FAILURES}" = "0" ] ; then
597 result="succeeded"
598 else
599 result="failed"
600 fi
601 case ${BUILDHISTORY_BUILD_INTERRUPTED} in
602 1)
603 result="$result (interrupted)"
604 ;;
605 2)
606 result="$result (force interrupted)"
607 ;;
608 esac
596 commitmsgfile=`mktemp` 609 commitmsgfile=`mktemp`
597 cat > $commitmsgfile << END 610 cat > $commitmsgfile << END
598$item: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $2 611$item: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $2
599 612
600cmd: $1 613cmd: $1
601 614
615result: $result
616
602metadata revisions: 617metadata revisions:
603END 618END
604 cat ${BUILDHISTORY_DIR}/metadata-revs >> $commitmsgfile 619 cat ${BUILDHISTORY_DIR}/metadata-revs >> $commitmsgfile
@@ -659,7 +674,11 @@ python buildhistory_eventhandler() {
659 if e.data.getVar('BUILDHISTORY_FEATURES', True).strip(): 674 if e.data.getVar('BUILDHISTORY_FEATURES', True).strip():
660 if e.data.getVar("BUILDHISTORY_COMMIT", True) == "1": 675 if e.data.getVar("BUILDHISTORY_COMMIT", True) == "1":
661 bb.note("Writing buildhistory") 676 bb.note("Writing buildhistory")
662 bb.build.exec_func("buildhistory_commit", e.data) 677 localdata = bb.data.createCopy(e.data)
678 localdata.setVar('BUILDHISTORY_BUILD_FAILURES', str(e._failures))
679 interrupted = getattr(e, '_interrupted', 0)
680 localdata.setVar('BUILDHISTORY_BUILD_INTERRUPTED', str(interrupted))
681 bb.build.exec_func("buildhistory_commit", localdata)
663} 682}
664 683
665addhandler buildhistory_eventhandler 684addhandler buildhistory_eventhandler