summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-04-01 00:06:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-01 12:39:40 +0100
commit2e40558cc33c5c566a9a742c32eda3ea017f8607 (patch)
tree8950b15aca5fee270a43cfd887c7dc39dcb72860 /meta/classes
parent479ae1e9b74aa2f04fb5da2f3541c3de0aa9de87 (diff)
downloadopenembedded-core-2e40558cc33c5c566a9a742c32eda3ea017f8607.tar.gz
openembedded-core-2e40558cc33c5c566a9a742c32eda3ea017f8607.tar.bz2
openembedded-core-2e40558cc33c5c566a9a742c32eda3ea017f8607.zip
buildhistory: record all builds
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>
Diffstat (limited to 'meta/classes')
-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 386c32cc67..2224340728 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -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
}