]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory: record all builds
authorKoen Kooi <koen@dominion.thruhere.net>
Sat, 31 Mar 2012 22:06:43 +0000 (00:06 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Apr 2012 11:39:40 +0000 (12:39 +0100)
When nothing has changed an empty commit prefixed with "No changes" will get generated so that the commit log of the buildhistory repo provides a complete log of all builds performed, not just those that resulted in changes.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index 386c32cc67dc5a4dc20c0337721c86fa98463ed3..22243407287dde202e4e31e318e7c162d46c23b7 100644 (file)
@@ -405,6 +405,8 @@ buildhistory_commit() {
                        if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
                                git push -q ${BUILDHISTORY_PUSH_REPO}
                        fi
+               else
+                       git commit ${BUILDHISTORY_DIR}/ --allow-empty -m "No changes: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
                fi) || true
 }