]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
buildhistory.bbclass: fix shell syntax when using dash
authorMartin Jansa <Martin.Jansa@gmail.com>
Tue, 7 Jun 2022 20:52:41 +0000 (22:52 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Jun 2022 20:55:45 +0000 (21:55 +0100)
* fix:
  run.buildhistory_get_image_installed.791888: 198: [: unexpected operator

  introduced in:
  commit 82e6172c1df378dff4e503aa878501c08937b5bb
  Author: Andres Beltran <abeltran@linux.microsoft.com>
  Date:   Tue Oct 5 00:34:15 2021 +0000

    buildhistory: Fix package output files for SDKs

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index 8db79a4829941d1906ccffb03ded6b0f089b2115..4345ffc6939eb6704945261323abfc5567da1e42 100644 (file)
@@ -508,7 +508,7 @@ buildhistory_get_installed() {
 
        # Set correct pkgdatadir
        pkgdatadir=${PKGDATA_DIR}
-       if [ "$2" == "sdk" ] && [ "$3" == "host" ]; then
+       if [ "$2" = "sdk" ] && [ "$3" = "host" ] ; then
                pkgdatadir="${PKGDATA_DIR_SDK}"
        fi