Patchwork cpan_build: Fix bashism

login
register
mail settings
Submitter Richard Purdie
Date Jan. 19, 2013, 11:47 p.m.
Message ID <1358639256.14265.4.camel@ted>
Download mbox | patch
Permalink /patch/42953/
State Accepted
Commit 9eb78340c61acddb0c2012e25c76c18735febb4d
Headers show

Comments

Richard Purdie - Jan. 19, 2013, 11:47 p.m.
Fix a build failure caused by a bashism and improve quoting whilst in
the area.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/cpan_build.bbclass b/meta/classes/cpan_build.bbclass
index 0809602..78592be 100644
--- a/meta/classes/cpan_build.bbclass
+++ b/meta/classes/cpan_build.bbclass
@@ -20,7 +20,7 @@  def cpan_build_dep_prepend(d):
 DEPENDS_prepend = "${@cpan_build_dep_prepend(d)}"
 
 cpan_build_do_configure () {
-	if [ ${@is_target(d)} == "yes" ]; then
+	if [ "${@is_target(d)}" = "yes" ]; then
 		# build for target
 		. ${STAGING_LIBDIR}/perl/config.sh
 	fi