summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-10-11 21:46:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-18 12:13:46 +0100
commit9fe0f62411898d7ad07a77a9207dc156687864c3 (patch)
tree9312c52b972e845df42c31bec43a70756f54845f /meta
parent7950bdf88dd3e0af6fd5a1edb34f63c24e913bbb (diff)
downloadpoky-9fe0f62411898d7ad07a77a9207dc156687864c3.tar.gz
buildhistory.bbclass: Fix hostname print for 'No changes' case
(From OE-Core rev: f9e3745d8eeef0df7e6dba3ba17d0b00645c92fa) 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')
-rw-r--r--meta/classes/buildhistory.bbclass2
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