diff options
-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 |