[oe-commits] Paul Eggleton : classes/buildhistory: add hostname to commit message
git at git.openembedded.org
git at git.openembedded.org
Fri Jan 6 12:19:19 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: abf3e7f7f56cc8bcdf104d8e27e7e366b0619ed6
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=abf3e7f7f56cc8bcdf104d8e27e7e366b0619ed6
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Thu Jan 5 17:24:45 2012 +0000
classes/buildhistory: add hostname to commit message
If we're building on multiple hosts then it's useful to have the
hostname in the commit message.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
meta/classes/buildhistory.bbclass | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 06d3510..ba20914 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -356,7 +356,8 @@ buildhistory_commit() {
repostatus=`git status --porcelain`
if [ "$repostatus" != "" ] ; then
git add ${BUILDHISTORY_DIR}/*
- git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} for machine ${MACHINE} configured for ${DISTRO} ${DISTRO_VERSION}" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
+ HOSTNAME=`cat /etc/hostname 2>/dev/null || echo unknown`
+ git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
git push -q ${BUILDHISTORY_PUSH_REPO}
fi
More information about the Openembedded-commits
mailing list