diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-06-24 11:49:42 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-28 09:44:18 +0100 |
commit | 6ae42d885144fd68bf9b7a9427d2dc00146ee415 (patch) | |
tree | c21e6f54ee445db7c52fa3ae341b2401a0e952c1 | |
parent | f76f0555b9b6ca6dd0c8e5baafa34f43828479b9 (diff) | |
download | poky-6ae42d885144fd68bf9b7a9427d2dc00146ee415.tar.gz |
classes/license.bbclass: Improve generic license copy validation.
Remove + char in any position for cover cases when license has
the form like GPL-2.0+-with-OpenSSL-exception.
[YOCTO #7584]
(From OE-Core rev: 9cff9d4e8c8ca7d6f41c4df16e484087213ae990)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/license.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index fdc117010e..b62910bf26 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass | |||
@@ -76,8 +76,12 @@ license_create_manifest() { | |||
76 | continue | 76 | continue |
77 | fi | 77 | fi |
78 | 78 | ||
79 | # remove + chars in any position this cover cases like | ||
80 | # GPL-2.0+-with-OpenSSL-exception -> GPL-2.0-with-OpenSSL-exception | ||
81 | lic="$(echo ${lic} | sed "s/\+//g")" | ||
82 | |||
79 | # to reference a license file trim trailing + symbol | 83 | # to reference a license file trim trailing + symbol |
80 | if ! [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic%+}" ]; then | 84 | if ! [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic}" ]; then |
81 | bbwarn "The license listed ${lic} was not in the licenses collected for ${pkged_pn}" | 85 | bbwarn "The license listed ${lic} was not in the licenses collected for ${pkged_pn}" |
82 | fi | 86 | fi |
83 | done | 87 | done |