aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2015-08-24 12:12:18 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-01 21:30:26 +0100
commit4c31f726cf1ea2e01b1fbf1c23e96a110fbb9623 (patch)
tree3cf4ea035c667bb2febea716b8a404eb884fec0d
parenta5fe29ff72dc2ce1667caa2ab1fdfbf2c1a4413b (diff)
downloadopenembedded-core-4c31f726cf1ea2e01b1fbf1c23e96a110fbb9623.zip
openembedded-core-4c31f726cf1ea2e01b1fbf1c23e96a110fbb9623.tar.gz
openembedded-core-4c31f726cf1ea2e01b1fbf1c23e96a110fbb9623.tar.bz2
license.bbclass: fix unexpected operator for LICENSE values with space
* add quotes around pkged_lic so that it works correctly with spaces * fixes following error: run.license_create_manifest.50601: 193: [: GPLv2: unexpected operator (From OE-Core rev: 2bb8b2abb689d91b7b7e28e6bd528747bde94dd2) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/classes/license.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index dfb162d..8d383ca 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -50,7 +50,7 @@ license_create_manifest() {
pkged_pv="$(sed -n 's/^PV: //p' ${filename})"
pkged_name="$(basename $(readlink ${filename}))"
pkged_lic="$(sed -n "/^LICENSE_${pkged_name}: /{ s/^LICENSE_${pkged_name}: //; p }" ${filename})"
- if [ -z ${pkged_lic} ]; then
+ if [ -z "${pkged_lic}" ]; then
# fallback checking value of LICENSE
pkged_lic="$(sed -n "/^LICENSE: /{ s/^LICENSE: //; p }" ${filename})"
fi