From: Paul Eggleton <[email protected]>

The echo line here was merging multiple lines into one, and the result
was that if both image and package changes had to be comitted then only
the image changes were being committed and the package changes could
potentially be merged into the next package change. Quoting the variable
reference fixes this.

Fixes [YOCTO #2411]

Signed-off-by: Paul Eggleton <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
---
 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 8d5b096..d2d19ff 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -402,7 +402,7 @@ buildhistory_commit() {
                        git add ${BUILDHISTORY_DIR}/*
                        HOSTNAME=`hostname 2>/dev/null || echo unknown`
                        # porcelain output looks like "?? packages/foo/bar"
-                       for entry in `echo $repostatus | awk '{print $2}' | awk 
-F/ '{print $1}' | sort | uniq` ; do
+                       for entry in `echo "$repostatus" | awk '{print $2}' | 
awk -F/ '{print $1}' | sort | uniq` ; do
                                git commit ${BUILDHISTORY_DIR}/$entry -m 
"$entry: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine 
${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
                        done
                        if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
-- 
1.7.9.5


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to