[oe-commits] =?UTF-8?Q?An=C3=ADbal=20Lim=C3=B3n=20?=: classes/license.bbclass: Improve generic license copy validation.
git at git.openembedded.org
git at git.openembedded.org
Sun Jun 28 08:46:42 UTC 2015
Module: openembedded-core.git
Branch: fido
Commit: 9cff9d4e8c8ca7d6f41c4df16e484087213ae990
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9cff9d4e8c8ca7d6f41c4df16e484087213ae990
Author: Aníbal Limón <anibal.limon at linux.intel.com>
Date: Wed Jun 24 11:49:42 2015 -0500
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]
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
meta/classes/license.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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
More information about the Openembedded-commits
mailing list