diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-10-11 21:46:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-13 15:21:40 +0000 |
commit | 79ef9ed12e05b8a257f89ab7a7e4c4a541ac38e2 (patch) | |
tree | dfb3ee8e6b77c5bae0a174e72aabbbaef8ffecd1 /meta/classes/buildhistory.bbclass | |
parent | b59f40e4597b92798b5d86f0ea6413903348c700 (diff) | |
download | poky-79ef9ed12e05b8a257f89ab7a7e4c4a541ac38e2.tar.gz |
buildhistory.bbclass: Fix hostname print for 'No changes' case
(From OE-Core rev: 0acd5a16a874b438eb288292833080bac9f9ea8b)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Saul Wold <sgw@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 49f2ea5b7c..0a5753f7dc 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -403,9 +403,9 @@ END | |||
403 | fi | 403 | fi |
404 | # Check if there are new/changed files to commit (other than metadata-revs) | 404 | # Check if there are new/changed files to commit (other than metadata-revs) |
405 | repostatus=`git status --porcelain | grep -v " metadata-revs$"` | 405 | repostatus=`git status --porcelain | grep -v " metadata-revs$"` |
406 | HOSTNAME=`hostname 2>/dev/null || echo unknown` | ||
406 | if [ "$repostatus" != "" ] ; then | 407 | if [ "$repostatus" != "" ] ; then |
407 | git add . | 408 | git add . |
408 | HOSTNAME=`hostname 2>/dev/null || echo unknown` | ||
409 | # porcelain output looks like "?? packages/foo/bar" | 409 | # porcelain output looks like "?? packages/foo/bar" |
410 | # Ensure we commit metadata-revs with the first commit | 410 | # Ensure we commit metadata-revs with the first commit |
411 | for entry in `echo "$repostatus" | awk '{print $2}' | awk -F/ '{print $1}' | sort | uniq` ; do | 411 | for entry in `echo "$repostatus" | awk '{print $2}' | awk -F/ '{print $1}' | sort | uniq` ; do |