diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2014-03-11 15:40:09 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-11 20:28:57 -0700 |
commit | d6dc48f5fb4d2e12605a1677e6270f13bb323649 (patch) | |
tree | 8313efe543d35c705058f454a6048c7b26a1fc02 | |
parent | 24d17244d42215227fae857215a807df54aded02 (diff) | |
download | poky-d6dc48f5fb4d2e12605a1677e6270f13bb323649.tar.gz |
lsbtest: fix comparison bashism
== is a bashism use = instead.
(From OE-Core rev: c90d1047c41148cbd57f26b5a34563346602a71b)
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | 4 | ||||
-rw-r--r-- | meta/recipes-extended/lsb/lsbtest_1.0.bb | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh index 12f00547ae..ab79985b1b 100644 --- a/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh +++ b/meta/recipes-extended/lsb/lsbtest/LSB_Test.sh | |||
@@ -272,12 +272,12 @@ then | |||
272 | fi | 272 | fi |
273 | 273 | ||
274 | if ! `grep -F -q "noarch-suse" ${PLATFORM_FILE}`; then | 274 | if ! `grep -F -q "noarch-suse" ${PLATFORM_FILE}`; then |
275 | if [ ${ARCH} == i686 ];then | 275 | if [ ${ARCH} = i686 ];then |
276 | echo "i486-suse" >> ${PLATFORM_FILE} | 276 | echo "i486-suse" >> ${PLATFORM_FILE} |
277 | echo "i486-noarch" >> ${PLATFORM_FILE} | 277 | echo "i486-noarch" >> ${PLATFORM_FILE} |
278 | echo "i486-pc" >> ${PLATFORM_FILE} | 278 | echo "i486-pc" >> ${PLATFORM_FILE} |
279 | echo "noarch-suse" >> ${PLATFORM_FILE} | 279 | echo "noarch-suse" >> ${PLATFORM_FILE} |
280 | elif [ ${ARCH} == x86_64 ]; then | 280 | elif [ ${ARCH} = x86_64 ]; then |
281 | echo "i486-suse" >> ${PLATFORM_FILE} | 281 | echo "i486-suse" >> ${PLATFORM_FILE} |
282 | echo "i486-noarch" >> ${PLATFORM_FILE} | 282 | echo "i486-noarch" >> ${PLATFORM_FILE} |
283 | echo "i486-pc" >> ${PLATFORM_FILE} | 283 | echo "i486-pc" >> ${PLATFORM_FILE} |
diff --git a/meta/recipes-extended/lsb/lsbtest_1.0.bb b/meta/recipes-extended/lsb/lsbtest_1.0.bb index a877beb299..f61251e2aa 100644 --- a/meta/recipes-extended/lsb/lsbtest_1.0.bb +++ b/meta/recipes-extended/lsb/lsbtest_1.0.bb | |||
@@ -19,15 +19,15 @@ do_install() { | |||
19 | install -d ${D}/opt/lsb-test | 19 | install -d ${D}/opt/lsb-test |
20 | install -m 0644 ${S}/packages_list ${D}/opt/lsb-test/packages_list | 20 | install -m 0644 ${S}/packages_list ${D}/opt/lsb-test/packages_list |
21 | install -m 0644 ${S}/session ${D}/opt/lsb-test/session | 21 | install -m 0644 ${S}/session ${D}/opt/lsb-test/session |
22 | if [ "${TARGET_ARCH}" == "i586" ];then | 22 | if [ "${TARGET_ARCH}" = "i586" ];then |
23 | sed -i -e 's/lsbarch/ia32/g' -e 's/targetarch/i486/g' ${D}/opt/lsb-test/packages_list | 23 | sed -i -e 's/lsbarch/ia32/g' -e 's/targetarch/i486/g' ${D}/opt/lsb-test/packages_list |
24 | sed -i -e 's/targetarch/x86/g' ${D}/opt/lsb-test/session | 24 | sed -i -e 's/targetarch/x86/g' ${D}/opt/lsb-test/session |
25 | fi | 25 | fi |
26 | if [ "${TARGET_ARCH}" == "x86_64" ];then | 26 | if [ "${TARGET_ARCH}" = "x86_64" ];then |
27 | sed -i -e 's/lsbarch/amd64/g' -e 's/targetarch/x86_64/g' ${D}/opt/lsb-test/packages_list | 27 | sed -i -e 's/lsbarch/amd64/g' -e 's/targetarch/x86_64/g' ${D}/opt/lsb-test/packages_list |
28 | sed -i -e 's/targetarch/x86-64/g' ${D}/opt/lsb-test/session | 28 | sed -i -e 's/targetarch/x86-64/g' ${D}/opt/lsb-test/session |
29 | fi | 29 | fi |
30 | if [ "${TARGET_ARCH}" == "powerpc" ];then | 30 | if [ "${TARGET_ARCH}" = "powerpc" ];then |
31 | sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list | 31 | sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list |
32 | sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session | 32 | sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session |
33 | fi | 33 | fi |
@@ -37,7 +37,7 @@ do_install() { | |||
37 | # in the package_list when MLIB=lib64 is being used. | 37 | # in the package_list when MLIB=lib64 is being used. |
38 | # Otherwise, by default, the ppc32 LSB packages | 38 | # Otherwise, by default, the ppc32 LSB packages |
39 | # will be downloaded by LSB_Test.sh | 39 | # will be downloaded by LSB_Test.sh |
40 | if [ "${TARGET_ARCH}" == "powerpc64" ];then | 40 | if [ "${TARGET_ARCH}" = "powerpc64" ];then |
41 | if [ "${PN}" != "${BPN}" ];then | 41 | if [ "${PN}" != "${BPN}" ];then |
42 | sed -i -e 's/lsbarch/ppc64/g' -e 's/targetarch/ppc64/g' ${D}/opt/lsb-test/packages_list | 42 | sed -i -e 's/lsbarch/ppc64/g' -e 's/targetarch/ppc64/g' ${D}/opt/lsb-test/packages_list |
43 | sed -i -e 's/targetarch/PPC64/g' ${D}/opt/lsb-test/session | 43 | sed -i -e 's/targetarch/PPC64/g' ${D}/opt/lsb-test/session |