[oe-commits] Otavio Salvador : buildhistory.bbclass: Fix hostname print for 'No changes' case

git at git.openembedded.org git at git.openembedded.org
Thu Dec 13 15:22:19 UTC 2012


Module: openembedded-core.git
Branch: danny
Commit: 0acd5a16a874b438eb288292833080bac9f9ea8b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0acd5a16a874b438eb288292833080bac9f9ea8b

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Thu Oct 11 21:46:41 2012 +0000

buildhistory.bbclass: Fix hostname print for 'No changes' case

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 49f2ea5..0a5753f 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





More information about the Openembedded-commits mailing list