aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-10-11 21:46:41 +0000
committerRoss Burton <ross.burton@intel.com>2012-12-05 12:51:54 +0000
commit0acd5a16a874b438eb288292833080bac9f9ea8b (patch)
tree1db98d3e88efb36f21b8d0a7d1e43110484cf804 /meta/classes
parent47df8cbb6eb757a439d3d9f44e2615faa74fd258 (diff)
downloadopenembedded-core-0acd5a16a874b438eb288292833080bac9f9ea8b.tar.gz
buildhistory.bbclass: Fix hostname print for 'No changes' case
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')
-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
fi
# Check if there are new/changed files to commit (other than metadata-revs)
repostatus=`git status --porcelain | grep -v " metadata-revs$"`
+ HOSTNAME=`hostname 2>/dev/null || echo unknown`
if [ "$repostatus" != "" ] ; then
git add .
- HOSTNAME=`hostname 2>/dev/null || echo unknown`
# porcelain output looks like "?? packages/foo/bar"
# Ensure we commit metadata-revs with the first commit
for entry in `echo "$repostatus" | awk '{print $2}' | awk -F/ '{print $1}' | sort | uniq` ; do