summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/create-spdx.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass
index 0a2fad5..db85677 100644
--- a/meta/classes/create-spdx.bbclass
+++ b/meta/classes/create-spdx.bbclass
@@ -105,6 +105,9 @@ def convert_license_to_spdx(lic, document, d, existing={}):
105 if l == "|": 105 if l == "|":
106 return "OR" 106 return "OR"
107 107
108 if l == "CLOSED":
109 return "NONE"
110
108 spdx_license = d.getVarFlag("SPDXLICENSEMAP", l) or l 111 spdx_license = d.getVarFlag("SPDXLICENSEMAP", l) or l
109 if spdx_license in license_data["licenses"]: 112 if spdx_license in license_data["licenses"]:
110 return spdx_license 113 return spdx_license