kernel-yocto.bbclass: Bug Fix inside do_kernel_checkout()
PATCH 1/1 kernel-yocto.bbclass: Bug Fix inside do_kernel_checkout()
From: Theodor Gherzan <[email protected]>
--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 <[email protected]>
Signed-off-by Ross Burton <[email protected]>
--- meta/classes/kernel-yocto.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-yocto.bbclass +1 -1
@@ -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
Signature · 1 line
2.1.0