Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/2] license.bbclass: fix unexpected operator for LICENSE values with space
Date: Tue, 17 Feb 2015 20:02:28 +0100	[thread overview]
Message-ID: <1424199748-10800-2-git-send-email-Martin.Jansa@gmail.com> (raw)
In-Reply-To: <1424199748-10800-1-git-send-email-Martin.Jansa@gmail.com>

* 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>
---
 meta/classes/license.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 13c1a0f..044b3b0 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
-- 
2.3.0



  reply	other threads:[~2015-02-17 19:02 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02 10:02 [RFT] upcoming glibc 2.21 and gcc 4.9 upgrade Khem Raj
2015-02-02 10:40 ` [yocto] " Burton, Ross
2015-02-02 10:53   ` Khem Raj
2015-02-02 10:54   ` Khem Raj
2015-02-02 17:25     ` Burton, Ross
2015-02-02 17:40       ` Khem Raj
2015-02-02 17:50         ` Burton, Ross
2015-02-02 18:33           ` Khem Raj
2015-02-02 21:45             ` Burton, Ross
2015-02-03  5:03               ` Khem Raj
2015-02-03 11:55                 ` Burton, Ross
2015-02-03 14:43                 ` Dan McGregor
2015-02-12  7:35                   ` Khem Raj
2015-02-14  7:53                     ` Burton, Ross
2015-02-14 10:06                     ` Richard Purdie
2015-02-14 13:08                       ` Burton, Ross
2015-02-14 15:15                         ` Dan McGregor
2015-02-15 21:59                       ` Richard Purdie
2015-02-17 17:50                         ` Martin Jansa
2015-02-17 19:02                           ` [PATCH 1/2] valgrind: add glibc-2.21 to glibc.patch Martin Jansa
2015-02-17 19:02                             ` Martin Jansa [this message]
2015-02-18  7:15                       ` [yocto] [RFT] upcoming glibc 2.21 and gcc 4.9 upgrade Khem Raj
2015-02-18  7:46                         ` Richard Purdie
2015-02-18  9:01                           ` Khem Raj
2015-02-18 11:51                             ` Richard Purdie
2015-02-18 13:06                               ` Richard Purdie
2015-02-18 18:38                                 ` Khem Raj
2015-02-18 21:41                                   ` Richard Purdie
2015-02-19  0:23                                     ` Khem Raj
2015-02-19  0:28                                       ` Khem Raj
2015-02-19  0:31                                         ` Khem Raj
2015-02-19  3:36                                           ` Khem Raj
     [not found] ` <54CFA8A5.7090504@mvista.com>
2015-02-02 17:26   ` Burton, Ross
2015-02-02 17:43     ` Khem Raj
2015-02-20 18:03 ` Richard Purdie
2015-02-21  0:27   ` Peter Urbanec
2015-02-24  6:34     ` Khem Raj
2015-02-21  9:22   ` Richard Purdie
2015-02-24  6:59     ` Khem Raj
2015-02-24 21:58       ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424199748-10800-2-git-send-email-Martin.Jansa@gmail.com \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox