From 79ef9ed12e05b8a257f89ab7a7e4c4a541ac38e2 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 11 Oct 2012 21:46:41 +0000 Subject: buildhistory.bbclass: Fix hostname print for 'No changes' case (From OE-Core rev: 0acd5a16a874b438eb288292833080bac9f9ea8b) Signed-off-by: Otavio Salvador Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/classes/buildhistory.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf