]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory: fix multiple commit of images and packages at the same time
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 4 May 2012 13:36:01 +0000 (14:36 +0100)
committerScott Garman <sgarman@zenlinux.com>
Mon, 7 May 2012 23:14:47 +0000 (16:14 -0700)
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 <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index 8d5b0963f8a6be4962becf1ea016ae09518d4261..d2d19ff9cd3f8464a35743a3a28042199fc949cc 100644 (file)
@@ -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