diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-02-14 10:55:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-21 17:59:37 +0000 |
commit | 1b7014ffc5a06a09484eebb91bf0d94e45abf98a (patch) | |
tree | f3d893b6744fda5a41a980358dcda34258fd1490 /meta/classes/buildhistory.bbclass | |
parent | 04c290a492b212236979708345bed3639b763cd4 (diff) | |
download | poky-1b7014ffc5a06a09484eebb91bf0d94e45abf98a.tar.gz |
classes/buildhistory: use hostname instead of reading /etc/hostname
For the purposes of querying the hostname to include it in the commit
message, it seems "cat /etc/hostname" does not work on the Yocto Project
autobuilder machines, and it's likely that the hostname command will be
more generally reliable, so use that instead.
(From OE-Core rev: cb939b753c9e7648a38e22e0349c279da785e69d)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 3fbe3a8576..dfc9b73919 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -383,7 +383,7 @@ buildhistory_commit() { | |||
383 | repostatus=`git status --porcelain` | 383 | repostatus=`git status --porcelain` |
384 | if [ "$repostatus" != "" ] ; then | 384 | if [ "$repostatus" != "" ] ; then |
385 | git add ${BUILDHISTORY_DIR}/* | 385 | git add ${BUILDHISTORY_DIR}/* |
386 | HOSTNAME=`cat /etc/hostname 2>/dev/null || echo unknown` | 386 | HOSTNAME=`hostname 2>/dev/null || echo unknown` |
387 | git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null | 387 | git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null |
388 | if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then | 388 | if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then |
389 | git push -q ${BUILDHISTORY_PUSH_REPO} | 389 | git push -q ${BUILDHISTORY_PUSH_REPO} |