summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2015-02-17 20:02:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-17 22:35:04 +0000
commit2f8e5a8be1b2baf1aa9cf275f74a906b7597a45b (patch)
tree3671266109cbba27392bb2b99b93d514a8bf81be
parentc58a3ae2e8136404e1069ceae1d6c0e5171dd82a (diff)
downloadpoky-2f8e5a8be1b2baf1aa9cf275f74a906b7597a45b.tar.gz
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>
-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 13c1a0fddf..044b3b063a 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -50,7 +50,7 @@ license_create_manifest() {
50 pkged_pv="$(sed -n 's/^PV: //p' ${filename})" 50 pkged_pv="$(sed -n 's/^PV: //p' ${filename})"
51 pkged_name="$(basename $(readlink ${filename}))" 51 pkged_name="$(basename $(readlink ${filename}))"
52 pkged_lic="$(sed -n "/^LICENSE_${pkged_name}: /{ s/^LICENSE_${pkged_name}: //; p }" ${filename})" 52 pkged_lic="$(sed -n "/^LICENSE_${pkged_name}: /{ s/^LICENSE_${pkged_name}: //; p }" ${filename})"
53 if [ -z ${pkged_lic} ]; then 53 if [ -z "${pkged_lic}" ]; then
54 # fallback checking value of LICENSE 54 # fallback checking value of LICENSE
55 pkged_lic="$(sed -n "/^LICENSE: /{ s/^LICENSE: //; p }" ${filename})" 55 pkged_lic="$(sed -n "/^LICENSE: /{ s/^LICENSE: //; p }" ${filename})"
56 fi 56 fi