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>
This commit is contained in:
parent
7950bdf88d
commit
9fe0f62411
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue