summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-06-24 11:49:42 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-28 09:44:18 +0100
commit6ae42d885144fd68bf9b7a9427d2dc00146ee415 (patch)
treec21e6f54ee445db7c52fa3ae341b2401a0e952c1 /meta/classes
parentf76f0555b9b6ca6dd0c8e5baafa34f43828479b9 (diff)
downloadast2050-yocto-poky-6ae42d885144fd68bf9b7a9427d2dc00146ee415.zip
ast2050-yocto-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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/license.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index fdc1170..b62910b 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -76,8 +76,12 @@ license_create_manifest() {
continue
fi
+ # remove + chars in any position this cover cases like
+ # GPL-2.0+-with-OpenSSL-exception -> GPL-2.0-with-OpenSSL-exception
+ lic="$(echo ${lic} | sed "s/\+//g")"
+
# to reference a license file trim trailing + symbol
- if ! [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic%+}" ]; then
+ if ! [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic}" ]; then
bbwarn "The license listed ${lic} was not in the licenses collected for ${pkged_pn}"
fi
done
OpenPOWER on IntegriCloud