]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto.bbclass: Bug Fix inside do_kernel_checkout()
authorTheodor Gherzan <theodor@resin.io>
Thu, 15 Jan 2015 17:47:44 +0000 (17:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Jan 2015 10:37:51 +0000 (10:37 +0000)
--047d7b3a7fac0eebee050cb47483
Content-Type: text/plain; charset="UTF-8"

 After we check the existence of 'machine_branch' with 'git show-ref'
 the following if statement should change the 'machine_branch'
 to the default (i.e. master) if the 'git show-ref' has returned an
 exit code that is not 0, not the other way around.

Signed-off-by: Theodor Gherzan <theodor@resin.io>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel-yocto.bbclass

index 9c50d525079f167825d7861160f50aff08ae8d6a..223825e546a460135a2817afe67cad530561b48d 100644 (file)
@@ -211,7 +211,7 @@ do_kernel_checkout() {
        # Create a working tree copy of the kernel by checking out a branch
        machine_branch="${@ get_machine_branch(d, "${KBRANCH}" )}"
        git show-ref --quiet --verify -- "refs/heads/${machine_branch}"
-       if [ $? -eq 0 ]; then
+       if [ $? -ne 0 ]; then
                machine_branch="master"
        fi