[oe-commits] Koen Kooi : buildhistory: record all builds
git at git.openembedded.org
git at git.openembedded.org
Mon Apr 2 03:31:21 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 2e40558cc33c5c566a9a742c32eda3ea017f8607
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2e40558cc33c5c566a9a742c32eda3ea017f8607
Author: Koen Kooi <koen at dominion.thruhere.net>
Date: Sun Apr 1 00:06:43 2012 +0200
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 at dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/buildhistory.bbclass | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 386c32c..2224340 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
}
More information about the Openembedded-commits
mailing list