diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2015-02-17 20:02:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-17 22:29:27 +0000 |
commit | 2bb8b2abb689d91b7b7e28e6bd528747bde94dd2 (patch) | |
tree | 20d9dc665efa476c71b431a7701ee94bb962d779 /meta/classes/license.bbclass | |
parent | 68ccb00b024efccb70efffc80a57b819f10a95e0 (diff) | |
download | openembedded-core-2bb8b2abb689d91b7b7e28e6bd528747bde94dd2.tar.gz openembedded-core-2bb8b2abb689d91b7b7e28e6bd528747bde94dd2.tar.bz2 openembedded-core-2bb8b2abb689d91b7b7e28e6bd528747bde94dd2.zip |
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
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r-- | meta/classes/license.bbclass | 2 |
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() { 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 |